‎07-31-2013 01:23 PM
Solved! Go to Solution.
‎07-31-2013 05:55 PM
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblFloppy.Name,
tblFloppy.Model,
tblFloppy.InterfaceType,
Ceiling(tblFloppy.Size / 1024 / 1024) As SizeMB,
SubQuery1.HDDcount
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblFloppy On tblAssets.AssetID = tblFloppy.AssetID
Inner Join (Select Top 1000000 tblFloppy.AssetID,
Count(tblFloppy.floppyID) As HDDcount
From tblFloppy
Group By tblFloppy.AssetID) SubQuery1 On SubQuery1.AssetID = tblAssets.AssetID
Where SubQuery1.HDDcount > 1 And tblAssetCustom.State = 1
Order By tblAssets.Domain,
tblAssets.AssetName,
tblFloppy.Name
‎07-31-2013 06:18 PM
‎07-31-2013 05:55 PM
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblFloppy.Name,
tblFloppy.Model,
tblFloppy.InterfaceType,
Ceiling(tblFloppy.Size / 1024 / 1024) As SizeMB,
SubQuery1.HDDcount
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblFloppy On tblAssets.AssetID = tblFloppy.AssetID
Inner Join (Select Top 1000000 tblFloppy.AssetID,
Count(tblFloppy.floppyID) As HDDcount
From tblFloppy
Group By tblFloppy.AssetID) SubQuery1 On SubQuery1.AssetID = tblAssets.AssetID
Where SubQuery1.HDDcount > 1 And tblAssetCustom.State = 1
Order By tblAssets.Domain,
tblAssets.AssetName,
tblFloppy.Name
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now