Is there a way to add a sort order to where clauses?
For example
SELECT *
FROM media
WHERE media_title LIKE 'query'
OR media_title LIKE 'query string'
OR media_title LIKE 'query string to search for'
I would like to search by relevancy of what the end-user input into a search box, with the last where clause being the most relevant.
1 Answer