SQL – is there a way to order results by how many `OR`'s it maches? (laravel)
I have this query: SELECT * FROM articles WHERE name LIKE ‘%test%’ OR title LIKE ‘%test%’ OR text LIKE ‘%test%’ OR author LIKE ‘%test%’ The (known) results are composed of records that match the first condition, others that match the second and so on.. However – some of them will match more than one condition.… Read More SQL – is there a way to order results by how many `OR`'s it maches? (laravel)