‎11-23-2016 08:26 AM
Solved! Go to Solution.
‎11-23-2016 09:11 AM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.IPAddress,
tblAssets.Username,
tblFloppy.Model,
tblAssets.Lastseen,
SubQuery1.HDDcount
From tblAssets
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
Order By tblFloppy.Name
‎11-23-2016 09:11 AM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.IPAddress,
tblAssets.Username,
tblFloppy.Model,
tblAssets.Lastseen,
SubQuery1.HDDcount
From tblAssets
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
Order By tblFloppy.Name
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now