‎07-30-2010 11:10 PM
‎08-10-2010 07:08 PM
SELECT
softwareName AS [Software]
,department AS [Department]
,COUNT(*) AS [Installed]
FROM tblSoftware
LEFT JOIN tblCompCustom
ON tblSoftware.Computername = tblCompCustom.Computername
WHERE
softwareName LIKE 'Microsoft Office%'
AND softwareName NOT LIKE '%Communications Server%'
AND softwareName NOT LIKE '%Live Meeting%'
AND softwareName NOT LIKE '%Viewer%'
AND softwareName NOT LIKE '%Communicator%'
AND softwareName NOT LIKE '%Web Components%'
AND softwareName NOT LIKE '%Resource Kit%'
GROUP BY softwareName, Department
ORDER BY SoftwareName, Department
‎08-03-2010 09:43 PM
SELECT
softwareName AS [Software]
,OU AS [OU]
,COUNT(*) AS [Installed]
FROM tblSoftware
LEFT JOIN tblADComputers
ON tblSoftware.Computername = tblADComputers.Computername
WHERE
softwareName LIKE 'Microsoft Office%'
AND softwareName NOT LIKE '%Communications Server%'
AND softwareName NOT LIKE '%Live Meeting%'
AND softwareName NOT LIKE '%Viewer%'
AND softwareName NOT LIKE '%Communicator%'
AND softwareName NOT LIKE '%Web Components%'
AND softwareName NOT LIKE '%Resource Kit%'
GROUP BY softwareName, OU
ORDER BY SoftwareName, OU
‎08-01-2010 01:16 PM
Select Top 100 Percent dbo.tblSoftware.softwareName As Software,
dbo.tblSoftware.SoftwarePublisher As Publisher,
Count(dbo.tblSoftware.ComputerName) As Total, dbo.tblComputers.Computername
From dbo.tblSoftware Inner Join
dbo.tblComputers On dbo.tblSoftware.ComputerName =
dbo.tblComputers.Computername
Where ((dbo.tblSoftware.softwareName Like 'Microsoft Office 2000 Professional')
Or
(dbo.tblSoftware.softwareName =
'Microsoft Office Professional Edition 2003') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Professional Plus 2007 ')
Or (dbo.tblSoftware.softwareName = 'Microsoft Office XP Professional ') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office XP Standard ') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Professional 2010 ') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Standard Edition 2003 ')
Or (dbo.tblSoftware.softwareName = 'Microsoft Office XP Small Business '))
And dbo.tblComputers.Computer Like 'it%'
Group By dbo.tblSoftware.softwareName, dbo.tblSoftware.SoftwarePublisher,
dbo.tblComputers.Computername, dbo.tblComputers.ComputerUnique
Order By Count(dbo.tblSoftware.ComputerName)
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now