Video Screencast Help
Search Video Help Close Back
to help

Customized Report "Computer with Software Installed, Usage, Installed and Last Use"

Created: 09 Oct 2012 | Updated: 09 Oct 2012
SanjayDeo7.1's picture
0 0 Votes
Login to vote

Some costomers require a report with "Computer with software installed, usage,installed and last use" which not in default reports. Below is the SQL query of the report and report in xml format.

Select Distinct adrp.DisplayName,vms.[Last Start] as [Last Run],vc.Name, vc.[User],adrp.InstallDate,
case when vms.[Run Count]>= 1 then 'Yes' else 'No' end usage from Vcomputer vc 
inner join inv_addremoveprogram adrp on vc.Guid = adrp._resourceguid
inner join vammonthlysummary vms on adrp._resourceguid = vms._resourceguid
inner join Inv_InstalledSoftware ins on vms._ResourceGuid = ins._ResourceGuid
where ins.InstallFlag = 1 and adrp.DisplayName like 'Adobe reader 8%'
 and vms.[Last Start] =(SELECT max(vms.[Last Start]) FROM vammonthlysummary vms where vms._ResourceGuid = vc.Guid)
 order by vc.Name