Last active
November 24, 2016 13:22
-
-
Save DarkAllien/de5e2c963ba3d062412b027f2d46dfbb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * | |
FROM [v_R_System] [s] | |
JOIN | |
( | |
SELECT [c1].[ResourceID] | |
FROM [v_FullCollectionMembership] [c1] WITH (nolock) | |
WHERE [c1].[CollectionID] = @CollID | |
) [c] ON [c].[ResourceID] = [s].[ResourceID]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment