WE discussed Recursive CTEs in many of the previous posts. Most of the times we use a recursive CTE to generate a tree/hierarchy and the order of rows are very important. Each child row should be placed right under the parent node. If this ordering is not maintained, the result may look incorrect. I have written a post that explains how to achieve this order. You can find the post here: http://blog.sqlserver.me/2008/10/ordering-hierarchical-data.html
Sunday, October 5, 2008
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment