I’m looking for a query with the lowest possible resource usage which gives no result. For example (this won’t work):
SELECT 1 WHERE 0
Edit:
The goal would be to be used in an EXISTS subquery in special cases where I want no matches. (I know this is not the only possible solution, but in my environment I chose to use this one).
will do the job; you will not even need a USE-statement before.