→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎04-05-2018 10:28 PM
Solved! Go to Solution.
‎04-23-2018 05:11 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblADComputers.Description As [AD Description],
tblAssets.Username As [Last User],
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssetCustom.Model,
tblOperatingsystem.Caption As [Operating System],
tblAssetCustom.PurchaseDate,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblAssetCustom.Building,
tblAssetCustom.Location,
tblAssetCustom.Department,
tblAssetCustom.Custom4 As [Department Code],
tblAssetGroups.AssetGroup,
tblState.Statename As [Asset State]
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblAssetGroupLink On tblAssets.AssetID = tblAssetGroupLink.AssetID
Inner Join tblAssetGroups On tblAssetGroups.AssetGroupID =
tblAssetGroupLink.AssetGroupID
Left Join tblADComputers On tblAssets.AssetID = tblADComputers.AssetID
Left Join tblOperatingsystem On tblAssets.AssetID = tblOperatingsystem.AssetID
Inner Join tblState On tblState.State = tblAssetCustom.State
Where tblAssetCustom.Department Like '%Football%' And
(tblAssetGroups.AssetGroup = 'Desktop' Or tblAssetGroups.AssetGroup = 'Mobile'
Or tblAssetGroups.AssetGroup = 'Mobile Plus' Or tblAssetGroups.AssetGroup =
'Performance' Or tblAssetGroups.AssetGroup = 'Non-PP')
Order By tblAssets.AssetName
‎05-04-2018 04:16 PM
‎04-23-2018 05:11 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblADComputers.Description As [AD Description],
tblAssets.Username As [Last User],
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssetCustom.Model,
tblOperatingsystem.Caption As [Operating System],
tblAssetCustom.PurchaseDate,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblAssetCustom.Building,
tblAssetCustom.Location,
tblAssetCustom.Department,
tblAssetCustom.Custom4 As [Department Code],
tblAssetGroups.AssetGroup,
tblState.Statename As [Asset State]
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblAssetGroupLink On tblAssets.AssetID = tblAssetGroupLink.AssetID
Inner Join tblAssetGroups On tblAssetGroups.AssetGroupID =
tblAssetGroupLink.AssetGroupID
Left Join tblADComputers On tblAssets.AssetID = tblADComputers.AssetID
Left Join tblOperatingsystem On tblAssets.AssetID = tblOperatingsystem.AssetID
Inner Join tblState On tblState.State = tblAssetCustom.State
Where tblAssetCustom.Department Like '%Football%' And
(tblAssetGroups.AssetGroup = 'Desktop' Or tblAssetGroups.AssetGroup = 'Mobile'
Or tblAssetGroups.AssetGroup = 'Mobile Plus' Or tblAssetGroups.AssetGroup =
'Performance' Or tblAssetGroups.AssetGroup = 'Non-PP')
Order By tblAssets.AssetName
‎04-20-2018 05:17 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now