
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2013 04:37 PM
Select Distinct Top 1000000 m.Computer, tblComputersystem.Model As ComputerModel, tblOperatingsystem.Caption, tblMonitor.MonitorModel, n.softwareName As Software, tblPrinters.Caption As Printers, tblComputers.Lastseen From tblComputers m Left Join (Select Distinct c.Computername, s.softwareName From tblComputers c Inner Join tblSoftware s On c.Computername = s.ComputerName Where s.softwareName Like '%SPC Express%' And c.LastknownIP Like '10.17.30.%' Or s.softwareName Like '%Microsoft%Office%Professional%''' Or s.softwareName Like '%Microsoft%Office%Standard%') As n On m.Computername = n.Computername Inner Join tblComputersystem On m.Computername = tblComputersystem.Computername Inner Join tblMonitor On m.Computername = tblMonitor.Computername Inner Join tblPrinters On m.Computername = tblPrinters.Computername Inner Join tblComputers On tblComputers.Computername = tblComputersystem.Computername And tblComputers.Computername = tblMonitor.Computername And tblComputers.Computername = tblPrinters.Computername Inner Join tblOperatingsystem On m.Computername = tblOperatingsystem.Computername And tblComputers.Computername = tblOperatingsystem.Computername Where m.LastknownIP Like '10.17.30.%' Order By m.Computer
Solved! Go to Solution.
- Labels:
-
Report Center

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2015 11:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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
You would have to add more subqueries to the initial report we posted, i.e. you would have to repeat the snippet below and specify a unique name for each subquery. The subquery fields will be selectable like any other table fields in the upper section of the report builder.
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2013 06:04 PM
Select Top 1000000 upgrade_tblCompCustom.Department,
upgrade_tblComputers.ComputerUnique,
upgrade_tblSoftware.softwareName As Software
From upgrade_tblSoftware
Inner Join upgrade_tblComputers On upgrade_tblSoftware.ComputerName =
upgrade_tblComputers.Computername
Inner Join upgrade_web40ActiveComputers On upgrade_tblComputers.Computername =
upgrade_web40ActiveComputers.Computername
Inner Join upgrade_tblCompCustom On upgrade_tblComputers.Computername =
upgrade_tblCompCustom.Computername
Group By upgrade_tblCompCustom.Department,
upgrade_tblComputers.ComputerUnique,
upgrade_tblSoftware.softwareName,
upgrade_tblSoftware.softwareVersion,
upgrade_tblSoftware.SoftwarePublisher
Having upgrade_tblSoftware.softwareName Like 'Malwarebytes%'
Order By upgrade_tblSoftware.softwareName,
upgrade_tblCompCustom.Department,
Count(upgrade_tblSoftware.ComputerName) Desc
I tried changing the "Like 'MalwareBytes%'" to "Not Like 'MalwareBytes%'" and I get all the results of all of other software for all the systems.
TIA

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2013 06:40 PM
I tried "IS NULL" in the web interface of a resulting report.
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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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?
You cannot add filters like this within the report results. You'll need to edit the SQL query. It is expected behavior for the report posted in this thread to return blank values, as it includes both computers with and without a particular software package. Computers without the software package installed will have no values for the softwareName, softwareVersion and softwarePublisher fields.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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
Works great. Thank you,
