→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎02-06-2015 11:15 AM
Solved! Go to Solution.
‎02-06-2015 01:36 PM
Select Distinct Top 1000000 tblAssetCustom.Custom2 As
[Custom field column name],
tCountCitrix.Installations As [Citrix Receiver installations],
tCountJava.Installations As [Java 7 installations]
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Left Join (Select tblAssetCustom.Custom2,
Count(tblSoftware.AssetID) As Installations
From tblAssetCustom
Inner Join tblSoftware On tblAssetCustom.AssetID = tblSoftware.AssetID
Inner Join tblSoftwareUni On tblSoftware.softID = tblSoftwareUni.SoftID
Where tblSoftwareUni.softwareName Like 'Citrix Receiver%'
Group By tblAssetCustom.Custom2) tCountCitrix On tCountCitrix.Custom2 =
tblAssetCustom.Custom2
Left Join (Select tblAssetCustom.Custom2,
Count(tblSoftware.AssetID) As Installations
From tblAssetCustom
Inner Join tblSoftware On tblAssetCustom.AssetID = tblSoftware.AssetID
Inner Join tblSoftwareUni On tblSoftware.softID = tblSoftwareUni.SoftID
Where tblSoftwareUni.softwareName Like 'Java 7%'
Group By tblAssetCustom.Custom2) tCountJava On tCountJava.Custom2 =
tblAssetCustom.Custom2
Where tblAssetCustom.State = 1 And tblAssets.Assettype = -1
Order By [Custom field column name]
‎02-16-2015 01:26 PM
Select Top 1000000 tblAssetCustom.Custom2,
tblSoftwareUni.softwareName As Software,
tblSoftware.softwareVersion As Version,
tblSoftwareUni.SoftwarePublisher As Publisher,
tblOperatingsystem.Caption As OS,
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
Inner Join tblOperatingsystem
On tblAssets.AssetID = tblOperatingsystem.AssetID
Where tblAssetCustom.State = 1
Group By tblAssetCustom.Custom2,
tblSoftwareUni.softwareName,
tblSoftware.softwareVersion,
tblSoftwareUni.SoftwarePublisher,
tblOperatingsystem.Caption
Order By tblAssetCustom.Custom2,
Software
‎02-11-2015 12:15 PM
‎02-10-2015 03:05 PM
Select Top 1000000 tblAssetCustom.Custom2,
tblSoftwareUni.softwareName As Software,
tblSoftware.softwareVersion As Version,
tblSoftwareUni.SoftwarePublisher As Publisher,
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 tblAssetCustom.Custom2,
tblSoftwareUni.softwareName,
tblSoftware.softwareVersion,
tblSoftwareUni.SoftwarePublisher
Order By tblAssetCustom.Custom2,
Total Desc
‎02-10-2015 11:59 AM
‎02-06-2015 01:36 PM
Select Distinct Top 1000000 tblAssetCustom.Custom2 As
[Custom field column name],
tCountCitrix.Installations As [Citrix Receiver installations],
tCountJava.Installations As [Java 7 installations]
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Left Join (Select tblAssetCustom.Custom2,
Count(tblSoftware.AssetID) As Installations
From tblAssetCustom
Inner Join tblSoftware On tblAssetCustom.AssetID = tblSoftware.AssetID
Inner Join tblSoftwareUni On tblSoftware.softID = tblSoftwareUni.SoftID
Where tblSoftwareUni.softwareName Like 'Citrix Receiver%'
Group By tblAssetCustom.Custom2) tCountCitrix On tCountCitrix.Custom2 =
tblAssetCustom.Custom2
Left Join (Select tblAssetCustom.Custom2,
Count(tblSoftware.AssetID) As Installations
From tblAssetCustom
Inner Join tblSoftware On tblAssetCustom.AssetID = tblSoftware.AssetID
Inner Join tblSoftwareUni On tblSoftware.softID = tblSoftwareUni.SoftID
Where tblSoftwareUni.softwareName Like 'Java 7%'
Group By tblAssetCustom.Custom2) tCountJava On tCountJava.Custom2 =
tblAssetCustom.Custom2
Where tblAssetCustom.State = 1 And tblAssets.Assettype = -1
Order By [Custom field column name]
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now