sqlite - Hierarchical SQL query - SQLLite -
i have structure this:
- site
- documentlibrary
- folder 1
- file 1
- folder 2
- folder 3
- file 2
- file 3
- folder 1
- documentlibrary 2
- file 6
- folder 4
- folder 5
- folder 6
- file 5
- file 6
- folder 6
- folder 5
- documentlibrary
my tables following:
[website] - websiteid - websitename
[document_library] - libraryid - libraryname - websiteid
[folder] - folderid - foldername - libraryid - parentfolderid
[file] - fileid - filename - libraryid - folderid
my question is...given siteid , documentlibrary id how can retrieve folders of document library structure? files of document library structure?
depending on version can use cte mssql
Comments
Post a Comment