‎09-25-2013 01:09 PM
Computer name | 7-zip | Skype | Visio |
-------------------------------------------------------------------
PC1 |7-zip 3.4 | Skype 6.1 | Microsoft office visio 2010|
PC2 |- | Skype 6.2 | Microsoft office visio 2007|
PC3 |7-zip 3.2 | - | Microsoft office visio 2010|
Computer name | 7-zip | Skype | Visio |
------------------------------------------------------------------------------------------------------
PC1 |7-zip 3.4 | 7-zip 3.4 | 7-zip 3.4 |
PC1 |Skype 6.1 | Skype 6.1 | Skype 6.1 |
PC1 |Microsoft office visio 2010 | Microsoft office visio 2010| Microsoft office visio 2010|
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblSoftwareUni.softwareName As [7-zip],
Reader.softwareName As [Adobe Reader]
From tblAssets
Inner Join tblSoftware On tblAssets.AssetID = tblSoftware.AssetID
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Inner Join tblSoftwareUni Reader On tblSoftware.softID = Reader.SoftID
Where (tblSoftwareUni.softwareName Like '7-Zip%') Or
(Reader.softwareName Like 'Adobe Reader%')
Group By tblAssets.AssetID,
tblAssets.AssetName,
tblSoftwareUni.softwareName,
Reader.softwareName
‎09-26-2013 09:51 PM
‎09-26-2013 01:33 PM
‎09-25-2013 04:24 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
SubQuery1.softwareName As [7-Zip],
SubQuery2.softwareName As [Adobe Reader]
From tblAssets
Left Join (Select Top 1000000 tblAssets.AssetID,
tblSoftwareUni.softwareName
From tblAssets
Inner Join tblSoftware On tblAssets.AssetID = tblSoftware.AssetID
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Where tblSoftwareUni.softwareName Like '7-Zip%') SubQuery1
On SubQuery1.AssetID = tblAssets.AssetID
Left Join (Select Top 1000000 tblAssets.AssetID,
tblSoftwareUni.softwareName
From tblAssets
Inner Join tblSoftware On tblAssets.AssetID = tblSoftware.AssetID
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Where tblSoftwareUni.softwareName Like 'Adobe Reader%') SubQuery2
On SubQuery2.AssetID = tblAssets.AssetID
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now