‎03-18-2013 04:37 PM
Solved! Go to Solution.
‎03-29-2013 06:08 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblAssets.Lasttried,
subquery.softwareName,
subquery.softwareVersion,
subquery.SoftwarePublisher
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Left Join (Select tblSoftware.AssetID,
tblSoftwareUni.softwareName,
tblSoftware.softwareVersion,
tblSoftwareUni.SoftwarePublisher
From tblSoftware
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Where tblSoftwareUni.softwareName Like '%microsoft office%') subquery
On subquery.AssetID = tblAssets.AssetID
Where tsysAssetTypes.AssetTypename = 'windows' And tblAssets.IPAddress
Like '10.17.30.%' And tblAssetCustom.State = 1
‎07-28-2015 11:58 PM
‎08-01-2015 04:26 PM
mwisniewski9 wrote:
This is exactly what I was looking for. Would it be possible to extend this table to generate a report that could list all of your PCs but then show multiple pieces of software that are installed/not installed? For instance, a column for computers and then a separate column for for software#1, software#2,etc... Pardon my poor SQL skills
Left Join (Select tblSoftware.AssetID,
tblSoftwareUni.softwareName,
tblSoftware.softwareVersion,
tblSoftwareUni.SoftwarePublisher
From tblSoftware
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Where tblSoftwareUni.softwareName Like '%name of the software package %') subquery
On subquery.AssetID = tblAssets.AssetID
‎04-12-2013 07:02 PM
Select Top 1000000 tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.AssetID,
tblAssets.AssetUnique,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.IPAddress As IP,
tblAssets.Lastseen
From tblAssets
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Where tblAssets.AssetID Not In (Select tblSoftware.AssetID
From tblSoftware Inner Join tblSoftwareUni On tblSoftwareUni.SoftID =
tblSoftware.softID
Where tblSoftwareUni.softwareName Like '%YourSoftware%') And
tblAssets.Lastseen <> '' And tblAssets.Assettype = -1
Order By tblAssets.AssetUnique
‎04-04-2013 06:04 PM
‎03-29-2013 06:40 PM
‎04-03-2013 06:02 PM
harringg wrote:
Is such a filter possible on a report that has been generated, or can it only be done by coding it in the first place?
‎03-29-2013 06:08 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblAssets.Lasttried,
subquery.softwareName,
subquery.softwareVersion,
subquery.SoftwarePublisher
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Left Join (Select tblSoftware.AssetID,
tblSoftwareUni.softwareName,
tblSoftware.softwareVersion,
tblSoftwareUni.SoftwarePublisher
From tblSoftware
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Where tblSoftwareUni.softwareName Like '%microsoft office%') subquery
On subquery.AssetID = tblAssets.AssetID
Where tsysAssetTypes.AssetTypename = 'windows' And tblAssets.IPAddress
Like '10.17.30.%' And tblAssetCustom.State = 1
‎04-01-2013 05:09 PM
Lansweeper wrote:
A sample 5.0 report can be seen below.Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblAssets.Lasttried,
subquery.softwareName,
subquery.softwareVersion,
subquery.SoftwarePublisher
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Left Join (Select tblSoftware.AssetID,
tblSoftwareUni.softwareName,
tblSoftware.softwareVersion,
tblSoftwareUni.SoftwarePublisher
From tblSoftware
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Where tblSoftwareUni.softwareName Like '%microsoft office%') subquery
On subquery.AssetID = tblAssets.AssetID
Where tsysAssetTypes.AssetTypename = 'windows' And tblAssets.IPAddress
Like '10.17.30.%' And tblAssetCustom.State = 1
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now