We combined both reports using a subquery. Hopefully this will give back the information that you are after.
Instructions for adding this report to your Lansweeper installation can be found
here. If you are interested in building or modifying reports, we do recommend:
- Reviewing some SQL tutorials, as the Lansweeper report builder is a standard SQL editor. If you know SQL, you know how to build Lansweeper reports as well. This seems like a good tutorial.
- Making use of our database dictionary, which explains in great detail what each database table and field stores. More information on the dictionary can be found here.
Select Top 1000000 tblAssets.AssetName As Hostname,
tblSoftwareUni.softwareName As Software,
tblSoftware.softwareVersion As Version,
FileInfo.FilePathfull,
FileInfo.FileVersion,
FileInfo.CompanyName
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 (Select Top 1000000 tblAssets.AssetName As Hostname,
tblFileVersions.AssetID As AssetID,
tblFileVersions.FilePathfull,
tblFileVersions.FileVersion,
tblFileVersions.CompanyName
From tblAssets
Inner Join tblFileVersions On tblAssets.AssetID = tblFileVersions.AssetID
Where tblFileVersions.FilePathfull Like '%\Program Files (x86)\someapp.exe'
And tblFileVersions.Found = 1
Order By Hostname) As FileInfo On tblAssets.AssetID = FileInfo.AssetID
Where tblSoftwareUni.softwareName Like '%someapp%' And tblAssetCustom.State = 1