‎01-16-2019 04:42 PM
Select Top 1000000 tblSublicenses.softwareName
From tblLicenses
Inner Join tblSublicenses On tblLicenses.LicenseidID =
tblSublicenses.LicenseidID
Where tblLicenses.softwareName = 'Do Not Track'
Select Top 1000000 SubString(tblAssets.AssetName, 1, 3) As AssetGroup,
tblAssets.AssetID,
tblAssets.AssetName,
tsysOS.OSname As OS,
tblSoftwareUni.softwareName
From tblAssets
Inner Join tblSoftware On tblAssets.AssetID = tblSoftware.AssetID
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Left Join tsysOS On tsysOS.OScode = tblAssets.OScode
Where (tsysOS.OSname = 'Win 10' Or tsysOS.OSname = 'Win 7')
Order By tblAssets.AssetName
Select Top 1000000 SubString(tblAssets.AssetName, 1, 3) As AssetGroup,
tblAssets.AssetID,
tblAssets.AssetName,
tsysOS.OSname As OS,
tblSoftwareUni.softwareName,
tblLicenses.softwareName As softwareName1
From tblAssets
Inner Join tblSoftware On tblAssets.AssetID = tblSoftware.AssetID
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Left Join tsysOS On tsysOS.OScode = tblAssets.OScode
Left Outer Join tblSublicenses On tblSoftwareUni.softwareName =
tblSublicenses.softwareName
Left Join tblLicenses On tblLicenses.LicenseidID = tblSublicenses.LicenseidID
Where (tsysOS.OSname = 'Win 10' Or tsysOS.OSname = 'Win 7') And
tblSublicenses.softwareName Is Null
Order By tblAssets.AssetName
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now