with [CTE] as (
select * from [TheTable] c where c.[ParentId] = 1
union all
select * from [CTE] p, [TheTable] c where c.[ParentId] = p.[NodeId]
)
select * from [CTE]
with [CTE] as (
select * from [TheTable] c where c.[ParentId] = 1
union all
select * from [CTE] p, [TheTable] c where c.[ParentId] = p.[NodeId]
)
select * from [CTE]
SQL Server 2005 - Temukan Procs Tersimpan Yang Jalankan Ke Tabel Tertentu
Bisakah cadangan MS SQL 2005 dipulihkan ke instance MS SQL 2008?
Jalankan prosedur tersimpan di blok OUTER APPLY
Siklus Melalui Clipboard Ring di SQL Server Management Studio (SSMS) - Tutorial SQL Server / TSQL Bagian 8
Bagaimana saya bisa mendapatkan 12 bulan terakhir dari tanggal saat ini PLUS hari ekstra hingga tanggal 1 bulan terakhir diambil