Is there a way to union two tables, but keep the rows from the first table appearing first in the result set?
For example:
Table1
name
Try this :-
Select * from ( Select name,surname, 1 as filter from Table1 Union all Select name,surname , 2 as filter from Table2 ) order by filter