I need to introduce a dummy row if my query 1 fails to fetch result.
select column1,column2,... from <ActualTable> Where condition='abc'... (1)
Union
select "dummy col1","dummy col2"..... from <dummy table> where col1 NOT IN (select column1 from
<ActualTable> where condition = 'abc'..) (2)
With the above query if query 1 fetches result query 2 wont. If query 1 has no result then i would get a dummy row.
Is there any other way to achieve the same result in Sybase?
Temp table if the “ActualTable” gives >1 row