‎03-14-2018 05:34 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
ProcCapacity.CPU,
ProcCapacity.MaxClockSpeed,
tsysOS.OSname,
tblAssetCustom.Location,
tsysOS.OSname As OS,
tblAssets.Username,
tblADComputers.Description As Description1
From tblAssets
Inner Join (Select tblAssets.AssetID,
Max(tblProcessor.MaxClockSpeed) As MaxClockSpeed,
Count(tblProcessor.WIN32_PROCESSORid) As NrOfProcessors,
Max(tblProcessor.MaxClockSpeed) As [total Proc Capacity],
Max(tblProcessor.Architecture) As Architecture,
Max(tblProcessor.Caption) As Name,
Max(Replace(Replace(tblProcessor.Name, '(R)', ''), '(TM)', '')) As CPU
From tblAssets
Inner Join tblProcessor On tblAssets.AssetID = tblProcessor.AssetID
Group By tblAssets.AssetID) As ProcCapacity On ProcCapacity.AssetID =
tblAssets.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
Where (tblAssets.AssetName Not Like '%LAPTOP%' And tblAssetCustom.State = 1) Or
(tblAssets.AssetName Not Like '%TABLET%')
Order By ProcCapacity.MaxClockSpeed
‎03-15-2018 07:10 PM
WHERE
tblAssetCustom.State = 1
AND ( tblAssets.AssetName NOT LIKE '%LAPTOP%'
AND tblAssets.AssetName NOT LIKE '%TABLET%')
WHERE
tblAssetCustom.State = 1
AND tblAssets.AssetName NOT LIKE '%LAPTOP%'
AND tblAssets.AssetName NOT LIKE '%TABLET%'
WHERE
tblAssetCustom.State = 1
AND NOT ( tblAssets.AssetName LIKE '%LAPTOP%'
OR tblAssets.AssetName LIKE '%TABLET%')
‎03-15-2018 12:54 PM
Where (tblAssets.AssetName Not Like '%LAPTOP%' And tblAssetCustom.State = 1) Or
(tblAssets.AssetName Not Like '%TABLET%')
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now