sql >> Databasteknik >  >> RDS >> Sqlserver

SQL-serverunion men håll ordning

Prova detta :-

Select * 
from
( 
Select name,surname, 1 as filter
from  Table1
Union all
Select name,surname , 2 as filter
from Table2
)
order by filter


  1. Hur använder man PBKDF2 i Oracle 12c?

  2. Aggregat och partitionering

  3. *VARNING* Windows-uppdatering bryter rena Access-applikationer – fix tillgänglig

  4. convert_tz returnerar null