
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2015 06:39 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetUnique,
tblSoftwareUni.softwareName As software,
tblSoftware.softwareVersion As version,
tsysOS.Image As icon
From tblSoftware
Inner Join tblAssets On tblSoftware.AssetID = tblAssets.AssetID
Inner Join tblSoftwareUni On tblSoftware.softID = tblSoftwareUni.SoftID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Where (tblSoftwareUni.softwareName Like 'Autodesk Revit Architecture 2014' And
tblAssetCustom.State = 1) Or
(tblSoftwareUni.softwareName Like 'Autodesk Revit MEP 2014') Or
(tblSoftwareUni.softwareName Like 'Autodesk Revit 2014')
Order By software,
tblAssets.AssetName,
version
It runs great, but I'd like to substitute SP1, SP2, SP3 for the version numbers that are captured. Is there anyway to do that, I will I have to manually substitute those externally via Excel?
Solved! Go to Solution.
- Labels:
-
Report Center
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2015 02:45 PM
In regards to your question: the Lansweeper report builder uses standard SQL queries. You can use a Case to replace the version numbers in the report output. See sample report below.
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetUnique,
tblSoftwareUni.softwareName As software,
Case tblSoftware.softwareVersion When '13.07.09211' Then 'Your Custom Value 1' When '13.10.24211' Then 'Your Custom Value 2' End As version ,
tsysOS.Image As icon
From tblSoftware
Inner Join tblAssets On tblSoftware.AssetID = tblAssets.AssetID
Inner Join tblSoftwareUni On tblSoftware.softID = tblSoftwareUni.SoftID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Where (tblSoftwareUni.softwareName Like 'Autodesk Revit Architecture 2014' And
tblAssetCustom.State = 1) Or
(tblSoftwareUni.softwareName Like 'Autodesk Revit MEP 2014' And
tblAssetCustom.State = 1) Or
(tblSoftwareUni.softwareName Like 'Autodesk Revit 2014' And
tblAssetCustom.State = 1)
Order By software,
tblAssets.AssetName,
version
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2015 08:55 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2015 10:33 PM
When I add the suggested line and replace the custom values, I get an error "Ambiguous column name 'version".
Any thoughts?
I just augmented your suggestion:
Case tblSoftware.softwareVersion When '13.11.00004' Then 'SP3'
When '13.07.09211' Then 'SP1' When '13.10.24211' Then 'SP2' Else 'Original'
End As [Service Pack],
I end up with another column called 'Service Pack' and it corresponds to the version column.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2015 02:45 PM
In regards to your question: the Lansweeper report builder uses standard SQL queries. You can use a Case to replace the version numbers in the report output. See sample report below.
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetUnique,
tblSoftwareUni.softwareName As software,
Case tblSoftware.softwareVersion When '13.07.09211' Then 'Your Custom Value 1' When '13.10.24211' Then 'Your Custom Value 2' End As version ,
tsysOS.Image As icon
From tblSoftware
Inner Join tblAssets On tblSoftware.AssetID = tblAssets.AssetID
Inner Join tblSoftwareUni On tblSoftware.softID = tblSoftwareUni.SoftID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Where (tblSoftwareUni.softwareName Like 'Autodesk Revit Architecture 2014' And
tblAssetCustom.State = 1) Or
(tblSoftwareUni.softwareName Like 'Autodesk Revit MEP 2014' And
tblAssetCustom.State = 1) Or
(tblSoftwareUni.softwareName Like 'Autodesk Revit 2014' And
tblAssetCustom.State = 1)
Order By software,
tblAssets.AssetName,
version
