SELECT [conn1].[ResourceGuid]
FROM
[CollectionMembership] [conn1]
LEFT JOIN [vCollection] [conn2] ON [conn1].[CollectionGuid] = [conn2].[Guid]
WHERE [conn2].[Name] = 'Windows Servers'
SELECT [Name] = UPPER([Name])
FROM [vComputer]
WHERE [Guid] IN (
SELECT [conn1].[ResourceGuid]
FROM
[CollectionMembership] [conn1]
LEFT JOIN [vCollection] [conn2] ON [conn1].[CollectionGuid] = [conn2].[Guid]
WHERE [conn2].[Name] = 'Windows Servers'
)
ORDER BY [Name]
SELECT *
FROM
[vComputer] [conn1]
LEFT JOIN [CollectionMembership] [conn2] ON [conn1].[Guid] = [conn2].[ResourceGuid]
JOIN [vCollection] [conn3] ON [conn2].[CollectionGuid] = [conn3].[Guid] AND [conn3].[Name] = 'Windows Servers'