Quantcast
Channel: coder i|o: #strings
Viewing all articles
Browse latest Browse all 138

Using Recursive SQL and XML trick to PIVOT(OK, concat) a "Document Folder Structure Relationship" table, works like MySQL GROUP_CONCAT

$
0
0

From Geeks With Blogs:

I'm in the process of building out a Data Warehouse and encountered this issue along the way.In the environment, there is a table that stores all the folders with the individual level.  For example, if a document is created here:{App Path}\Level 1\Level 2\Level 3\{document}, then the DocumentFolder table would look like this: ID ID_Parent FolderName 1 NULL Level 1 2 1 Level 2 3 2 Level 3 To my und...

Click here to read more

Tagged: #sql #xml #mysql #strings


Viewing all articles
Browse latest Browse all 138

Trending Articles