Use LansweeperDB
Select dbo.tblAssets.AssetName
,dbo.tblAssets.Domain
,dbo.tsysOS.OSname
,dbo.tblSqlServers.displayVersion As Edition
,dbo.tblSqlServers.skuName As License
,dbo.tblSqlServers.spLevel As SP
,dbo.tblSqlServers.serviceName As Service
,dbo.tblSqlServers.lastChanged
,dbo.tblComputerSystem.NumberOfLogicalProcessors
,dbo.tblComputerSystem.NumberofProcessors
,dbo.tblComputerSystem.SystemType
From dbo.tblAssets
Inner Join dbo.tblAssetCustom On dbo.tblAssets.AssetID = dbo.tblAssetCustom.AssetID
Inner Join dbo.tsysOS On dbo.tblAssets.OScode = dbo.tsysOS.OScode
Inner Join dbo.tblSqlServers On dbo.tblAssets.AssetID = dbo.tblSqlServers.AssetID
Left Join dbo.tblComputerSystem on dbo.tblAssets.AssetID = dbo.tblComputerSystem.AssetID
Where dbo.tblSqlServers.skuName in ('Standard Edition', 'Standard Edition (64-bit)', 'Enterprise Edition', 'Enterprise Edition (64-bit)')
Order By dbo.tblAssets.AssetName
Regards