‎04-06-2021 04:15 PM
‎04-07-2021 03:44 PM
‎04-07-2021 04:59 PM
Chris Anderson wrote:
That's excellent!
2 questions -
The software that I'm trying to get a report on has 2 names, the newer version has a different name. How would I change to see both?
Also is it possible to show Software name and version in the report?
Thanks so much!
Chris
Select Distinct Top 1000000 tblassets.AssetID,
tblassets.AssetName,
tsysassettypes.AssetTypename,
tsysassettypes.AssetTypeIcon10 As icon,
tblassets.IPAddress,
tblassets.Lastseen,
tblassets.Lasttried,
tblSystemEnclosure.ChassisTypes,
TsysChassisTypes.ChassisName,
Case
When tblassets.AssetID In (Select Top 1000000 tblSoftware.AssetID
From tblSoftware Inner Join tblSoftwareUni On tblSoftwareUni.SoftID =
tblSoftware.softID
Where (tblSoftwareUni.softwareName Like 'Software Name1%') Or
(tblSoftwareUni.softwareName Like 'Software Name2%')) Then '#d4f4be'
When tblassets.AssetID Not In (Select Top 1000000 tblSoftware.AssetID
From tblSoftware Inner Join tblSoftwareUni On tblSoftwareUni.SoftID =
tblSoftware.softID
Where tblSoftwareUni.softwareName Like 'Name of software%') Then
'#f7cfca'
End As backgroundcolor
From tblassets
Inner Join tblassetcustom On tblassets.AssetID = tblassetcustom.AssetID
Inner Join tsysassettypes On tsysassettypes.AssetType = tblassets.Assettype
Inner Join lansweeperdb.dbo.tblSystemEnclosure On tblassets.AssetID =
tblSystemEnclosure.AssetID
Inner Join lansweeperdb.dbo.TsysChassisTypes On
tblSystemEnclosure.ChassisTypes = TsysChassisTypes.Chassistype
Inner Join lansweeperdb.dbo.tblSoftware On tblassets.AssetID =
tblSoftware.AssetID
Inner Join lansweeperdb.dbo.tblSoftwareUni On tblSoftwareUni.SoftID =
tblSoftware.softID
Where (TsysChassisTypes.ChassisName = 'laptop' And tblassetcustom.State = 1) Or
(TsysChassisTypes.ChassisName = 'portable') Or
(TsysChassisTypes.ChassisName = 'notebook')
‎04-06-2021 07:22 PM
Select Distinct Top 1000000 tblassets.AssetID,
tblassets.AssetName,
tsysassettypes.AssetTypename,
tsysassettypes.AssetTypeIcon10 As icon,
tblassets.IPAddress,
tblassets.Lastseen,
tblassets.Lasttried,
tblSystemEnclosure.ChassisTypes,
TsysChassisTypes.ChassisName,
Case
When tblassets.AssetID In (Select Top 1000000 tblSoftware.AssetID
From tblSoftware Inner Join tblSoftwareUni On tblSoftwareUni.SoftID =
tblSoftware.softID
Where tblSoftwareUni.softwareName Like 'Name of software%') Then
'#d4f4be'
When tblassets.AssetID Not In (Select Top 1000000 tblSoftware.AssetID
From tblSoftware Inner Join tblSoftwareUni On tblSoftwareUni.SoftID =
tblSoftware.softID
Where tblSoftwareUni.softwareName Like 'Name of software%') Then
'#f7cfca'
End As backgroundcolor
From tblassets
Inner Join tblassetcustom On tblassets.AssetID = tblassetcustom.AssetID
Inner Join tsysassettypes On tsysassettypes.AssetType = tblassets.Assettype
Inner Join lansweeperdb.dbo.tblSystemEnclosure On tblassets.AssetID =
tblSystemEnclosure.AssetID
Inner Join lansweeperdb.dbo.TsysChassisTypes On
tblSystemEnclosure.ChassisTypes = TsysChassisTypes.Chassistype
Inner Join lansweeperdb.dbo.tblSoftware On tblassets.AssetID =
tblSoftware.AssetID
Inner Join lansweeperdb.dbo.tblSoftwareUni On tblSoftwareUni.SoftID =
tblSoftware.softID
Where (TsysChassisTypes.ChassisName = 'laptop' And tblassetcustom.State = 1) Or
(TsysChassisTypes.ChassisName = 'portable') Or
(TsysChassisTypes.ChassisName = 'notebook')
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now