Lansweeper wrote:
Is it possible to attach your sql code (so I can copy/paste to test)
Here is the SQL
SELECT DISTINCT
dbo.tblSoftware.softwareName AS Software,
dbo.tblSoftware.ComputerName,
dbo.tblSoftware.Installdate,
tblComputers.LastknownIP,
tblSerialnumber.ProductKey
FROM
dbo.tblSoftware
INNER JOIN tblComputers ON (dbo.tblSoftware.ComputerName = tblComputers.Computername)
INNER JOIN tblSerialnumber ON (tblComputers.Computername = tblSerialnumber.Computername)
WHERE
dbo.tblSoftware.softwareName = 'Microsoft Office 2000 Premium' OR
dbo.tblSoftware.softwareName = 'Microsoft Office 2000 Professional' OR
dbo.tblSoftware.softwareName = 'Microsoft Office 2000 SR-1 Professional' OR
dbo.tblSoftware.softwareName = 'Microsoft Office 2000 SR-1 Standard' OR
dbo.tblSoftware.softwareName = 'Microsoft Office 2000 Standard' OR
dbo.tblSoftware.softwareName = 'Microsoft Office 97, Professional Edition' OR
dbo.tblSoftware.softwareName = 'Microsoft Office Access 2003 Runtime' OR
dbo.tblSoftware.softwareName = 'Microsoft Office Access Runtime (English) 2007' OR
dbo.tblSoftware.softwareName = 'Microsoft Office Enterprise 2007' OR
dbo.tblSoftware.softwareName = 'Microsoft Office FrontPage 2003' OR
dbo.tblSoftware.softwareName = 'Microsoft Office OneNote 2003' OR
dbo.tblSoftware.softwareName = 'Microsoft Office Professional Edition 2003' OR
dbo.tblSoftware.softwareName = 'Microsoft Office Professional Plus 2007' OR
dbo.tblSoftware.softwareName = 'Microsoft Office Project Professional 2003' OR
dbo.tblSoftware.softwareName = 'Microsoft Office Project Professional 2007' OR
dbo.tblSoftware.softwareName = 'Microsoft Office Project Standard 2003' OR
dbo.tblSoftware.softwareName = 'Microsoft Office Project Standard 2007' OR
dbo.tblSoftware.softwareName = 'Microsoft Office Standard 2007' OR
dbo.tblSoftware.softwareName = 'Microsoft Office Visio Professional 2003' OR
dbo.tblSoftware.softwareName = 'Microsoft Office Visio Professional 2007' OR
dbo.tblSoftware.softwareName = 'Microsoft Office Visio Standard 2003' OR
dbo.tblSoftware.softwareName = 'Microsoft Office Visio Standard 2007' OR
dbo.tblSoftware.softwareName = 'Microsoft Office Web Components' OR
dbo.tblSoftware.softwareName = 'Microsoft Office XP Standard' OR
dbo.tblSoftware.softwareName = 'Microsoft Office XP Professional' OR
dbo.tblSoftware.softwareName = 'Microsoft Office XP Professional with FrontPage'
ORDER BY
tblSerialnumber.ProductKey,
Software
--Also is there a way to get totals for the different Product Codes/Software with this query.