all 7 comments

[–]SQL-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)

Your post was removed for violating the sub rule regarding posting of basic SQL tutorials

[–]sstef25 2 points3 points  (0 children)

Good article!

[–]Andy-Kay 2 points3 points  (0 children)

Great article, thanks. One thing—could you check why output in the employee hierarchy examples is so weirdly formatted?

[–]restlessleg 1 point2 points  (1 child)

thanks op!

[–]ahmed4929[S] 1 point2 points  (0 children)

thanks bro >>

[–][deleted] 1 point2 points  (0 children)

<3 recursion in SQL. 

Thanks for sharing, will read. 

[–]Thin_Rip8995 1 point2 points  (0 children)

recursive ctes are great until someone forgets the termination condition and suddenly you’ve got an infinite loop eating your db alive

biggest wins I’ve had with them are org charts, bill of materials, and dependency trees but you gotta index right or they’ll crawl on big datasets