I like my version:
Select Top 1000000 tblassets.assetname,
tsysIPLocations.IPLocation,
tblAssetCustom.Manufacturer As Asset_Vendor,
tblAssetCustom.Model,
Coalesce(tblOperatingsystem.Caption, tblLinuxSystem.osrelease,
tblVmwareInfo.Version) As OS,
TB.*,
DateDiff(d, TB.ReleaseDate, TB.maxbiosdate) DiffDays,
Case
When TB.version = TB.lastbiosversion Then 'black'
Else 'red'
End As foregroundcolor
From (Select Top 1000000 biosinfo.*,
Max(biosinfo.ReleaseDate) Over (Partition By biosinfo.manufacturer,
biosinfo.product) As maxbiosdate,
First_Value(biosinfo.version) Over (Partition By biosinfo.manufacturer,
biosinfo.product Order By biosinfo.ReleaseDate Desc) As lastbiosversion
From (Select tblBIOS.assetid,
tblBaseBoard.Manufacturer,
tblBaseBoard.Product,
tblBIOS.ReleaseDate,
tblBIOS.SMBIOSBIOSVersion As version
From tblBaseBoard
Inner Join tblBIOS On tblBaseBoard.assetid = tblBIOS.assetid
Union
Select tblLinuxBaseBoard.assetid,
tblLinuxBaseBoard.Manufacturer,
tblLinuxBaseBoard.productname As product,
tbllinuxBIOS.ReleaseDate,
tbllinuxBIOS.Version
From tblLinuxBaseBoard
Inner Join tbllinuxBIOS On tblLinuxBaseBoard.assetid =
tbllinuxBIOS.assetid
Union
Select tblVmwareInfo.AssetID,
tblVmwareInfo.Vendor As Manufacturer,
tblVmwareInfo.Model As product,
tblVmwareInfo.BiosDate As ReleaseDate,
tblVmwareInfo.BiosVersion As version
From tblVmwareInfo) biosinfo) TB
Inner Join tblassets On tblassets.assetid = TB.assetid
Left Join tblOperatingsystem On tblassets.AssetID = tblOperatingsystem.AssetID
Left Join tblLinuxSystem On tblassets.AssetID = tblLinuxSystem.AssetID
Left Join tblVmwareInfo On tblassets.AssetID = tblVmwareInfo.AssetID
Left Join tblAssetCustom On tblassets.AssetID = tblAssetCustom.AssetID
Left Join tsysIPLocations On tblassets.LocationID = tsysIPLocations.LocationID
Where TB.product Not In ('440BX Desktop Reference Platform', 'RHEL-AV',
'VirtualBox', 'Virtual Machine')
Order By TB.manufacturer,
TB.product,
tblassets.assetname