‎06-09-2009 03:49 PM
SELECT DISTINCT
dbo.tblSoftware.softwareName AS Software,
dbo.tblSoftware.ComputerName,
dbo.tblSoftware.Installdate,
dbo.tblSoftware.Lastchanged,
dbo.tblSoftware.softwareVersion,
tblComputers.LastknownIP,
tblCompCustom.Department
FROM
dbo.tblSoftware
INNER JOIN tblComputers ON (dbo.tblSoftware.ComputerName = tblComputers.Computername)
LEFT OUTER JOIN tblCompCustom ON (dbo.tblSoftware.ComputerName = tblCompCustom.Computername)
WHERE
dbo.tblSoftware.softwareName = 'Symantec Antivirus'
‎06-11-2009 02:03 PM
‎06-11-2009 01:44 PM
SELECT DISTINCT
TOP 100 PERCENT dbo.tblCompCustom.Department, dbo.tblSoftware.softwareName, dbo.tblSoftware.softwareVersion,
COUNT(dbo.tblSoftware.ComputerName) AS Total
FROM dbo.tblSoftware FULL OUTER JOIN
dbo.tblCompCustom ON dbo.tblSoftware.ComputerName = dbo.tblCompCustom.Computername
GROUP BY dbo.tblSoftware.softwareName, dbo.tblCompCustom.Department, dbo.tblSoftware.softwareVersion
HAVING (dbo.tblSoftware.softwareName = 'Symantec Antivirus')
ORDER BY dbo.tblCompCustom.Department
‎06-11-2009 01:27 PM
‎06-11-2009 10:50 AM
SELECT DISTINCT TOP 100 PERCENT dbo.tblCompCustom.Department, dbo.tblSoftware.softwareVersion, COUNT(dbo.tblSoftware.ComputerName) AS ComputerName
FROM dbo.tblSoftware FULL OUTER JOIN dbo.tblCompCustom ON dbo.tblSoftware.ComputerName = dbo.tblCompCustom.Computername GROUP BY dbo.tblSoftware.softwareName, dbo.tblCompCustom.Department, dbo.tblSoftware.softwareVersion HAVING (dbo.tblSoftware.softwareName = 'Symantec Antivirus')
ORDER BY dbo.tblCompCustom.Department
‎06-11-2009 09:36 AM
‎06-11-2009 08:15 AM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now