‎08-26-2013 05:07 PM
Solved! Go to Solution.
‎08-27-2013 07:19 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblAssets.Lasttried,
tblFloppy.Name As DiskName,
tblFloppy.Model As DiskModel
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblFloppy On tblAssets.AssetID = tblFloppy.AssetID
Inner Join (Select Top 1000000 Count(tblFloppy.AssetID) As Count,
tblFloppy.Model
From tblAssetCustom
Inner Join tblFloppy On tblFloppy.AssetID = tblAssetCustom.AssetID
Where tblAssetCustom.State = 1
Group By tblFloppy.Model
Having Count(tblFloppy.AssetID) > 1) SubQuery1 On SubQuery1.Model =
tblFloppy.Model
Where tblAssetCustom.State = 1
Order By DiskModel,
tblAssets.Domain,
tblAssets.AssetName
‎08-28-2013 11:10 AM
‎08-27-2013 07:19 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblAssets.Lasttried,
tblFloppy.Name As DiskName,
tblFloppy.Model As DiskModel
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblFloppy On tblAssets.AssetID = tblFloppy.AssetID
Inner Join (Select Top 1000000 Count(tblFloppy.AssetID) As Count,
tblFloppy.Model
From tblAssetCustom
Inner Join tblFloppy On tblFloppy.AssetID = tblAssetCustom.AssetID
Where tblAssetCustom.State = 1
Group By tblFloppy.Model
Having Count(tblFloppy.AssetID) > 1) SubQuery1 On SubQuery1.Model =
tblFloppy.Model
Where tblAssetCustom.State = 1
Order By DiskModel,
tblAssets.Domain,
tblAssets.AssetName
‎08-27-2013 06:56 PM
‎08-27-2013 06:44 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now