Skip to content

Instantly share code, notes, and snippets.

@DarkAllien
Last active November 24, 2016 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DarkAllien/633c56d46c4eb3af98b3a520d11400ff to your computer and use it in GitHub Desktop.
Save DarkAllien/633c56d46c4eb3af98b3a520d11400ff to your computer and use it in GitHub Desktop.
SELECT *
FROM [v_R_System] [s]
WHERE [s].[ResourceID] IN
(
SELECT [c].[ResourceID]
FROM [v_FullCollectionMembership] [c] WITH (nolock)
WHERE [c].[CollectionID] = @CollID
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment