Hi LS team
I am wondering if you could modify my script as to prevent duplicate entries of the asset?
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetUnique,
tsysOS.OSname,
tsysOS.Image As icon,
tblAssetCustom.Model,
tsysIPLocations.IPLocation,
tblAssets.Username,
tblAssets.IPAddress,
tblAssetCustom.Serialnumber As [Asset Serial],
tblMonitor.MonitorModel As [Model Monitor 1],
tblMonitor.SerialNumber As [Serial Monitor 1],
tblMonitor1.MonitorModel As [Model Monitor 2],
tblMonitor1.SerialNumber As [Seria Monitor 2],
tblMonitor2.MonitorModel As [Model Monitor 3],
tblMonitor2.SerialNumber As [Serial Monitor 3]
From tblComputersystem
Inner Join tblAssets On tblComputersystem.AssetID = tblAssets.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Left Join tsysIPLocations On tsysIPLocations.StartIP <= tblAssets.IPNumeric
And tsysIPLocations.EndIP >= tblAssets.IPNumeric
Inner Join tblMonitor On tblAssets.AssetID = tblMonitor.AssetID
Inner Join tblMonitor tblMonitor1 On tblAssets.AssetID = tblMonitor1.AssetID
Inner Join tblMonitor tblMonitor2 On tblAssets.AssetID = tblMonitor2.AssetID
Where tblComputersystem.Domainrole < 2 And tblAssetCustom.State = 1
Order By tblAssets.AssetName