I have an example table "cities" like this:
id | city
----------------
1 London
2 Liverpool
3 Birmingham
4 (Other)
Can I write a query that returns (Other) if I provide a non-existing city... such as:
SELECT * FROM cities WHERE city = "London" --> {1, London}
SELECT * FROM cities WHERE city = "Manchester" --> {4, (Other) }
I understand that the second SELECT-statement will return nothing. But how can I modify it to return the "(Other)" row? Conceptual code:
SELECT * FROM cities WHERE city = "Manchester" OTHERWISE WHERE city = "(Other)"