Hi All
I hope everyone is well?
Im trying to run a report where I get the FULL OS build along with the OS version and some other fields.
But when I run the report, its seems to duplicate the "FULL BUILD" field (web50repnotlatestbuildwin10.Build).
Im a bit of a noob when it comes to creating LS reports, but suspect it could be something to do with tables being/not linked, or perhaps the DISTINCT field, but I dont really know enough to resolve the issue and I need this report pretty urgently.
Any help GREATLY appreciated.
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetUnique,
tblAssets.Username,
tsysOS.OSname,
tsysOS.Image As icon,
tblOperatingsystem.Version As Build,
tblAssetCustom.Model,
Case tblAssets.OScode
When '10.0.10240' Then '1507'
When '10.0.10586' Then '1511'
When '10.0.14393' Then '1607'
When '10.0.15063' Then '1703'
When '10.0.16299' Then '1709'
When '10.0.17134' Then '1803'
When '10.0.17763' Then '1809'
When '10.0.18362' Then '1903'
When '10.0.18363' Then '1909'
When '10.0.19041' Then '2004'
When '10.0.19042' Then '2009'
When '10.0.19043' Then '21H1'
When '10.0.19044' Then '21H2'
When '10.0.19045' Then '22H2'
Else '?'
End As Version,
tblAssets.Lastseen,
tblOperatingsystem.Caption As Caption1,
tblADComputers.OU,
web50repnotlatestbuildwin10.OS,
web50repnotlatestbuildwin10.Build As [Full Build],
web50repnotlatestbuildwin10.[OS Version]
From tblAssets
Inner Join tblOperatingsystem On
tblAssets.AssetID = tblOperatingsystem.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join tblADComputers On tblAssets.AssetID = tblADComputers.AssetID,
web50repnotlatestbuildwin10
Where tsysOS.OSname = 'Win 10' And tblAssetCustom.State = 1
Order By Build,
tblAssets.AssetUnique