How to group hierarchical relationships together in SQL Server

前端 未结 3 1860
余生分开走
余生分开走 2021-01-07 15:48

I have a column name Parent and Child in table Example and Below is the Table Data

|     Parent          |         


        
3条回答
  •  醉话见心
    2021-01-07 16:31

    you can simply use graph processing introduced in SQL‌ Server 2017. here is an example

    https://www.red-gate.com/simple-talk/sql/t-sql-programming/sql-graph-objects-sql-server-2017-good-bad/

提交回复
热议问题