‎05-26-2010 10:06 AM
Select Top 1000000 tblComputers.Computer, dbo.tblSoftware.softwareName,
dbo.tblSoftware.Installdate, dbo.tblSoftware.Lastchanged,
tblComputers.LastknownIP, tblCompCustom.Department
From dbo.tblSoftware Left Join
tblComputers On (dbo.tblSoftware.ComputerName = tblComputers.Computername)
Left Outer Join
tblCompCustom On (dbo.tblSoftware.ComputerName = tblCompCustom.Computername)
Where (dbo.tblSoftware.softwareName = 'Microsoft Office 2000 Standard') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office 2000 Professional') Or
(dbo.tblSoftware.softwareName =
'Microsoft Office XP Professional with FrontPage') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Professional Edition 2003')
Or
(dbo.tblSoftware.softwareName = 'Microsoft Office 2000 SR-1 Professional') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Visio Professional 2003')
Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Enterprise 2007') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Project Professional 2003')
Or
(dbo.tblSoftware.softwareName = 'Microsoft Office 2000 SR-1 Standard') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office 2000 Premium') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office 97, Professional Edition')
Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Professional Edition 2003')
Or
(dbo.tblSoftware.softwareName = 'Microsoft Office FrontPage 2003') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Project Professional 2003')
Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Visio Professional 2003')
Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Visio Professional 2007')
Or
(dbo.tblSoftware.softwareName = 'Microsoft Office XP Professional') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office OneNote 2003') Or
(dbo.tblSoftware.softwareName =
'Microsoft Office XP Professional with FrontPage') 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 Accounting 2009') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Enterprise 2007') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office OneNote 2003') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Professional Edition 2003')
Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Project Professional 2007')
Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Project Standard 2007') Or
(dbo.tblSoftware.softwareName =
'Microsoft Office Small Business Edition 2003') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Standard 2007') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Visio Professional 2007')
Order By tblComputers.LastknownIP
Select Top 1000000 tblComputers.Computer, dbo.tblSoftware.softwareName,
dbo.tblSoftware.Installdate, dbo.tblSoftware.Lastchanged,
tblComputers.LastknownIP, tblCompCustom.Department, tblSerialnumber.ProductKey
From dbo.tblSoftware Right Join
tblSerialnumber On tblSerialnumber.Computername = dbo.tblSoftware.ComputerName
Left Join
tblCompCustom On tblSerialnumber.Computername = tblCompCustom.Computername
Left Join
tblComputers On tblSerialnumber.Computername = tblComputers.Computername
Where (dbo.tblSoftware.softwareName = 'Microsoft Office 2000 Standard') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office 2000 Professional') Or
(dbo.tblSoftware.softwareName =
'Microsoft Office XP Professional with FrontPage') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Professional Edition 2003')
Or
(dbo.tblSoftware.softwareName = 'Microsoft Office 2000 SR-1 Professional') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Visio Professional 2003')
Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Enterprise 2007') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Project Professional 2003')
Or
(dbo.tblSoftware.softwareName = 'Microsoft Office 2000 SR-1 Standard') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office 2000 Premium') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office 97, Professional Edition')
Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Professional Edition 2003')
Or
(dbo.tblSoftware.softwareName = 'Microsoft Office FrontPage 2003') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Project Professional 2003')
Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Visio Professional 2003')
Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Visio Professional 2007')
Or
(dbo.tblSoftware.softwareName = 'Microsoft Office XP Professional') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office OneNote 2003') Or
(dbo.tblSoftware.softwareName =
'Microsoft Office XP Professional with FrontPage') 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 Accounting 2009') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Enterprise 2007') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office OneNote 2003') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Professional Edition 2003')
Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Project Professional 2007')
Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Project Standard 2007') Or
(dbo.tblSoftware.softwareName =
'Microsoft Office Small Business Edition 2003') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Standard 2007') Or
(dbo.tblSoftware.softwareName = 'Microsoft Office Visio Professional 2007')
Order By tblComputers.LastknownIP
‎05-26-2010 11:27 AM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now