October 18, 2010 at 6:04 am
davrose (10/18/2010)
Well..i know how recursive CTEs worki am interested in the select on the rCTE.
Anyway... now it works on the real problem as well
Oh, sorry!! :blush:
No offense meant! I'm not there with you, so I can just guess what skillset you have.
The outer query transforms the output of the CTE in XML format with a blank element identifier (FOR XML PATH('')).
The STUFF part just removes the first unwanted leading comma.
-- Gianluca Sartori
Viewing post 31 (of 30 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy