I need to do a report containing Asset name, SoftwareName, Softwareversion, Installdate and License key per Software.
I got as far as
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblSoftwareUni.softwareName,
tblSoftware.Installdate,
tblSoftware.softwareVersion,
tblSerialnumber.ProductKey
From tblAssets
Inner Join tblSoftware On tblAssets.AssetID = tblSoftware.AssetID
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Inner Join tblSerialnumber On tblAssets.AssetID = tblSerialnumber.AssetID
The report looks fine so far, but the license keys are all over the place instead of just next to their respective software