‎07-01-2021 11:51 AM
Select Top 1000000 Count(tblAssets.AssetID) As Count,
tblSoftwareUni.softwareName As Software,
tblSoftware.softwareVersion As Version,
Case
When tblSoftwareUni.Approved = 2 Then 'Unauthorised'
When tblSoftwareUni.Approved = 1 Then 'Approved'
When tblSoftwareUni.Approved = 0 Then 'No Status'
End As Status
From tblSoftware
Inner Join tblAssets On tblSoftware.AssetID = tblAssets.AssetID
Inner Join tblSoftwareUni On tblSoftware.softID = tblSoftwareUni.SoftID
Group By tblSoftwareUni.softwareName,
tblSoftware.softwareVersion,
Case
When tblSoftwareUni.Approved = 2 Then 'Unauthorised'
When tblSoftwareUni.Approved = 1 Then 'Approved'
When tblSoftwareUni.Approved = 0 Then 'No Status'
End
Order By Software
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now