→ 🚀What's New? Explore Lansweeper's Fall 2024 Updates! Fall Launch Blog !
08-06-2013 09:22 PM
Solved! Go to Solution.
08-07-2013 04:27 PM
Select Top 1000000 tblSoftwareUni.softwareName As Software,
tblSoftware.softwareVersion As Version,
tblSoftwareUni.SoftwarePublisher As Publisher,
SubQuery1.Total As Count,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.IPAddress
From tblSoftware
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Inner Join tblAssets On tblAssets.AssetID = tblSoftware.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join (Select Top 1000000 tblSoftwareUni.softwareName,
tblSoftware.softwareVersion,
tblSoftwareUni.SoftwarePublisher,
Count(tblSoftware.AssetID) As Total
From tblSoftware
Inner Join tblAssets On tblSoftware.AssetID = tblAssets.AssetID
Inner Join tblSoftwareUni On tblSoftware.softID = tblSoftwareUni.SoftID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Where tblAssetCustom.State = 1
Group By tblSoftwareUni.softwareName,
tblSoftware.softwareVersion,
tblSoftwareUni.SoftwarePublisher) SubQuery1 On SubQuery1.softwareName =
tblSoftwareUni.softwareName And SubQuery1.softwareVersion =
tblSoftware.softwareVersion And SubQuery1.SoftwarePublisher =
tblSoftwareUni.SoftwarePublisher
Where tblAssetCustom.State = 1
Order By Count Desc,
Software,
Version,
tblAssets.AssetName
08-08-2013 11:57 AM
08-07-2013 04:27 PM
Select Top 1000000 tblSoftwareUni.softwareName As Software,
tblSoftware.softwareVersion As Version,
tblSoftwareUni.SoftwarePublisher As Publisher,
SubQuery1.Total As Count,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.IPAddress
From tblSoftware
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Inner Join tblAssets On tblAssets.AssetID = tblSoftware.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join (Select Top 1000000 tblSoftwareUni.softwareName,
tblSoftware.softwareVersion,
tblSoftwareUni.SoftwarePublisher,
Count(tblSoftware.AssetID) As Total
From tblSoftware
Inner Join tblAssets On tblSoftware.AssetID = tblAssets.AssetID
Inner Join tblSoftwareUni On tblSoftware.softID = tblSoftwareUni.SoftID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Where tblAssetCustom.State = 1
Group By tblSoftwareUni.softwareName,
tblSoftware.softwareVersion,
tblSoftwareUni.SoftwarePublisher) SubQuery1 On SubQuery1.softwareName =
tblSoftwareUni.softwareName And SubQuery1.softwareVersion =
tblSoftware.softwareVersion And SubQuery1.SoftwarePublisher =
tblSoftwareUni.SoftwarePublisher
Where tblAssetCustom.State = 1
Order By Count Desc,
Software,
Version,
tblAssets.AssetName
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now