Hello there,
Im trying to write a query where if a query is run on a set of tables and the result of that query is null then i want it to run a different query based on different tables.
i.e.
SELECT CASE WHEN (Resulting Value from this query is NULL) THEN (Run nested query, SELECT * FROM xxx WHERE xxx)
FROM xx
WHERE xx
Any ideas would be gratefully appreciated!
Thanks