SELECT columns FROM tables
WHERE condition
ORDER BY
case when Table1.Col1 IS NULL then 0 else 1 end ASC
,case when Table1.Col1 IS NULL then Table2.Col2 else Table1.Col1 end DESC
SELECT columns FROM tables
WHERE condition
ORDER BY
case when Table1.Col1 IS NULL then 0 else 1 end ASC
,case when Table1.Col1 IS NULL then Table2.Col2 else Table1.Col1 end DESC
SQL Server:menggabungkan beberapa baris menjadi satu baris
Windows Server 2008 sebagai mesin pengembangan - langkah demi langkah
Mengganti nilai nol dalam kueri sql pivot dinamis
File FILESTREAM tertinggal setelah baris dihapus
Apa jenis SQL yang benar untuk menyimpan .Net Timespan dengan nilai> 24:00:00?