Skip to content

Instantly share code, notes, and snippets.

@fixlr
Created November 10, 2009 21:07
Show Gist options
  • Save fixlr/231267 to your computer and use it in GitHub Desktop.
Save fixlr/231267 to your computer and use it in GitHub Desktop.
DSpace: Determine number of collections in a Community (top of 3 tiers)
SELECT count(collection_id)
FROM community2collection
WHERE community_id = ANY(
SELECT child_comm_id
FROM community2community
WHERE parent_comm_id = 19);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment