So I have a simple query as follows;
SELECT Name FROM Contact WHERE Age > @age
My question is, I want this query to always return a value. If there are no results the SQL query is suppose to return ' ' (blank space).
I have added a UNION SELECT at the end;
SELECT Name FROM Contact WHERE Age > @age UNION SELECT ' '
However this also adds the blank record when there is a result.