SQL Server CTE with Multiple Levels -
I am playing around CTE in the STP server, but I do not know how this task can be accomplished.
I have the same table:
ParentID, FolderID, name1, 1, folder1 1, 2, folder2 1, 3, folder3 2, 4, Folder 4
What I'm trying to do: Folder_Name, Folder_Path \ '\' lists all folders for the very parent in the same line
Example above From: Folder4, Folder1 \ Folder2 \ Folder4
Is this possible? This is for an application that we use which has a front end; However, insects prevent us from doing anything and we are trying to copy the same using backend.
Thanks
Comments
Post a Comment