Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
SQL Query to find WorkSpaces without Documents
JoelShall
I've been requested to create a report to find all WorkSpace in our database that currently do not contain documents. I'm wondering if someone already has this built-out that I can use as a starting point or reference tool?
Find more posts tagged with
Comments
Migrateduser
You'll have to do an outer join on the project_items table and projects using the tree-id of the WorkSpace to find WorkSpaces (prj_id = tree_id) where there are no project_items records for documents (item_type = d).
JoelShall
I tried your suggestion but was unable to get the query to provide the results I want. Can you provide more in detail the sql needed to get Workspaces without documents?