‎03-29-2016 03:49 PM
Solved! Go to Solution.
‎03-31-2016 01:27 PM
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.Username,
tblAssets.Userdomain,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblAssets.Lasttried,
tblSerialnumber.Product,
tblSerialnumber.ProductID,
tblSerialnumber.productkey
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblSerialnumber On tblAssets.AssetID = tblSerialnumber.AssetID
Inner Join (Select Top 1000000 tblSerialnumber.Product,
tblSerialnumber.productkey,
Count(tblAssetCustom.AssetID) As Count
From tblAssetCustom
Inner Join tblSerialnumber On tblSerialnumber.AssetID =
tblAssetCustom.AssetID
Where tblAssetCustom.State = 1
Group By tblSerialnumber.Product,
tblSerialnumber.productkey) SubQuery On SubQuery.Product =
tblSerialnumber.Product And SubQuery.productkey = tblSerialnumber.productkey
Where tblAssetCustom.State = 1 And SubQuery.Count > 1
Order By tblSerialnumber.productkey,
tblSerialnumber.Product,
tblAssets.Domain,
tblAssets.AssetName
‎03-31-2016 01:27 PM
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.Username,
tblAssets.Userdomain,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblAssets.Lasttried,
tblSerialnumber.Product,
tblSerialnumber.ProductID,
tblSerialnumber.productkey
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblSerialnumber On tblAssets.AssetID = tblSerialnumber.AssetID
Inner Join (Select Top 1000000 tblSerialnumber.Product,
tblSerialnumber.productkey,
Count(tblAssetCustom.AssetID) As Count
From tblAssetCustom
Inner Join tblSerialnumber On tblSerialnumber.AssetID =
tblAssetCustom.AssetID
Where tblAssetCustom.State = 1
Group By tblSerialnumber.Product,
tblSerialnumber.productkey) SubQuery On SubQuery.Product =
tblSerialnumber.Product And SubQuery.productkey = tblSerialnumber.productkey
Where tblAssetCustom.State = 1 And SubQuery.Count > 1
Order By tblSerialnumber.productkey,
tblSerialnumber.Product,
tblAssets.Domain,
tblAssets.AssetName
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now