In a simple query like
SELECT *
FROM table
WHERE id='x' OR id='y'
How to give a priority to get only one of the WHERE clauses?
I mean getting rows with id='x'. Only if there is no row, get row with id='y'.
In other words, do not use id='y' if there is a row for id='x'.