I want to use order by clause in inner select queries with union operator i.e.
select colname from table where <cond1> order by colname
union
select colname from table where <cond2> order by colname
I can use order by with the complete result but I want to have the results from first query ordered by and then the result of second query ordered by.
Please give me some suggestions upon it.
Following should do… i guess