I have a join request that receives an invoice from two different groups. How to force the results to return in the order in which they are written in the query, and not in ascending / descending order?
select count(datediff(yyyy,dob,admitdate) as counts
from myTable
where condition
union
select count(datediff(yyyy,dob,admitdate) as counts
from myTable
where condition
I would like the first result to always return as the first row. Is it possible?
source
share