‎06-01-2016 06:09 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.Username,
tblAssets.AssetName,
tblAssets.IPAddress,
tblAssetCustom.Department,
tblAssetCustom.Model,
tblAssetCustom.Manufacturer,
tblAssetCustom.Serialnumber,
tblAssetCustom.PurchaseDate,
tblOperatingsystem.Caption As OS,
tblAssets.Lastseen,
tblSoftwareUni.softwareName
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblOperatingsystem
On tblAssets.AssetID = tblOperatingsystem.AssetID
Inner Join tblSystemEnclosure
On tblAssets.AssetID = tblSystemEnclosure.AssetID
Inner Join TsysChassisTypes On TsysChassisTypes.Chassistype =
tblSystemEnclosure.ChassisTypes
Inner Join tblSoftware On tblAssets.AssetID = tblSoftware.AssetID
Inner Join tblSoftwareUni On tblSoftware.softID = tblSoftwareUni.SoftID
Where tblAssetCustom.Model <> 'Virtual Machine' And
tblSoftwareUni.softwareName Like 'Microsoft Office%' And
tblSoftwareUni.softwareName Not Like '%viewer%' And
tblSoftwareUni.softwareName Not Like '%validation%' And
tblSoftwareUni.softwareName Not Like '%Runtime%' And
tblSoftwareUni.softwareName Not Like '%Connector%' And
tblSoftwareUni.softwareName Not Like '%Installer%' And
tblSoftwareUni.softwareName Not Like '%engine%' And
tblSoftwareUni.softwareName Not Like '%Communicator%' And
tblSoftwareUni.softwareName Not Like '%Live%' And
tblSoftwareUni.softwareName Not Like '%Interop%' And
tblSoftwareUni.softwareName Not Like '%Tools%' And
tblSoftwareUni.softwareName Not Like '%Language%' And
tblSoftwareUni.softwareName <> 'Microsoft Office' And
(TsysChassisTypes.Chassistype = 8 Or TsysChassisTypes.Chassistype = 9 Or
TsysChassisTypes.Chassistype = 10 Or TsysChassisTypes.Chassistype = 12)
Order By tblAssets.AssetName
Solved! Go to Solution.
‎06-02-2016 02:48 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.Username,
tblAssets.AssetName,
tblAssets.IPAddress,
tblAssetCustom.Department,
tblAssetCustom.Model,
tblAssetCustom.Manufacturer,
tblAssetCustom.Serialnumber,
tblAssetCustom.PurchaseDate,
tblOperatingsystem.Caption As OS,
tblAssets.Lastseen,
tblSoftwareUni.softwareName
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblOperatingsystem
On tblAssets.AssetID = tblOperatingsystem.AssetID
Inner Join tblSystemEnclosure
On tblAssets.AssetID = tblSystemEnclosure.AssetID
Inner Join TsysChassisTypes On TsysChassisTypes.Chassistype =
tblSystemEnclosure.ChassisTypes
Inner Join tblSoftware On tblAssets.AssetID = tblSoftware.AssetID
Inner Join tblSoftwareUni On tblSoftware.softID = tblSoftwareUni.SoftID
Where tblAssetCustom.Model <> 'Virtual Machine' And
tblSoftwareUni.softwareName Like 'Microsoft Office%' And
tblSoftwareUni.softwareName Not Like '%viewer%' And
tblSoftwareUni.softwareName Not Like '%validation%' And
tblSoftwareUni.softwareName Not Like '%Runtime%' And
tblSoftwareUni.softwareName Not Like '%Connector%' And
tblSoftwareUni.softwareName Not Like '%Installer%' And
tblSoftwareUni.softwareName Not Like '%engine%' And
tblSoftwareUni.softwareName Not Like '%Communicator%' And
tblSoftwareUni.softwareName Not Like '%Live%' And
tblSoftwareUni.softwareName Not Like '%Interop%' And
tblSoftwareUni.softwareName Not Like '%Tools%' And
tblSoftwareUni.softwareName Not Like '%Language%' And
tblSoftwareUni.softwareName <> 'Microsoft Office' And
(TsysChassisTypes.Chassistype = 8 Or TsysChassisTypes.Chassistype = 9 Or
TsysChassisTypes.Chassistype = 10)
Order By tblAssets.AssetName
‎06-02-2016 02:48 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.Username,
tblAssets.AssetName,
tblAssets.IPAddress,
tblAssetCustom.Department,
tblAssetCustom.Model,
tblAssetCustom.Manufacturer,
tblAssetCustom.Serialnumber,
tblAssetCustom.PurchaseDate,
tblOperatingsystem.Caption As OS,
tblAssets.Lastseen,
tblSoftwareUni.softwareName
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblOperatingsystem
On tblAssets.AssetID = tblOperatingsystem.AssetID
Inner Join tblSystemEnclosure
On tblAssets.AssetID = tblSystemEnclosure.AssetID
Inner Join TsysChassisTypes On TsysChassisTypes.Chassistype =
tblSystemEnclosure.ChassisTypes
Inner Join tblSoftware On tblAssets.AssetID = tblSoftware.AssetID
Inner Join tblSoftwareUni On tblSoftware.softID = tblSoftwareUni.SoftID
Where tblAssetCustom.Model <> 'Virtual Machine' And
tblSoftwareUni.softwareName Like 'Microsoft Office%' And
tblSoftwareUni.softwareName Not Like '%viewer%' And
tblSoftwareUni.softwareName Not Like '%validation%' And
tblSoftwareUni.softwareName Not Like '%Runtime%' And
tblSoftwareUni.softwareName Not Like '%Connector%' And
tblSoftwareUni.softwareName Not Like '%Installer%' And
tblSoftwareUni.softwareName Not Like '%engine%' And
tblSoftwareUni.softwareName Not Like '%Communicator%' And
tblSoftwareUni.softwareName Not Like '%Live%' And
tblSoftwareUni.softwareName Not Like '%Interop%' And
tblSoftwareUni.softwareName Not Like '%Tools%' And
tblSoftwareUni.softwareName Not Like '%Language%' And
tblSoftwareUni.softwareName <> 'Microsoft Office' And
(TsysChassisTypes.Chassistype = 8 Or TsysChassisTypes.Chassistype = 9 Or
TsysChassisTypes.Chassistype = 10)
Order By tblAssets.AssetName
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now