WITH Results (Result)
AS
(
select name as 'result'
from product
where...
union
select productNum as 'result'
from product
where...
)
SELECT TOP 10 * FROM Results
WITH Results (Result)
AS
(
select name as 'result'
from product
where...
union
select productNum as 'result'
from product
where...
)
SELECT TOP 10 * FROM Results
Konversi 'datetime2' menjadi 'date' di SQL Server (Contoh T-SQL)
Bagaimana saya bisa memindahkan tabel ke grup file lain di MS SQL Server?
Pemformatan Tanggal/Waktu Kustom di SQL Server
Bagaimana saya bisa mencari semua kolom dalam sebuah tabel?
Cara Memeriksa Pengaturan ANSI_NULLS Sesi Anda di SQL Server