‎02-28-2013 05:30 PM
‎03-07-2013 09:29 AM
Select Distinct Top 1000000 tblAssets.AssetID,
tblAssets.AssetUnique,
tblAssets.Domain,
tblAssets.AssetName,
Duplicates.MACaddress,
Duplicates.Total,
tblAssets.Lastseen
From tblAssets
Inner Join tblOperatingsystem
On tblAssets.AssetID = tblOperatingsystem.AssetID
Inner Join tblNetwork On tblAssets.AssetID = tblNetwork.AssetID
Inner Join (Select Top 1000000 tblNetwork.MACaddress,
Count(Distinct tblNetwork.AssetID) As Total
From tblAssets
Inner Join tblNetwork On tblAssets.AssetID = tblNetwork.AssetID
Where tblNetwork.IPEnabled = 1
Group By tblNetwork.MACaddress
Having (tblNetwork.MACaddress <> '' And tblNetwork.MACaddress <>
'50:50:54:50:30:30' And tblNetwork.MACaddress <> '33:50:6F:45:30:30') And
Count(Distinct tblNetwork.AssetID) > 1) Duplicates
On tblNetwork.MACaddress = Duplicates.MACaddress
Order By Duplicates.Total Desc,
Duplicates.MACaddress,
tblAssets.AssetName
‎03-04-2013 09:51 AM
‎03-01-2013 09:53 AM
Select Distinct Top 1000000 tblAssets.AssetID,
tblAssets.AssetUnique, tblAssets.Domain, tblAssets.AssetName,
Web40OSName.OSname As OS, Duplicates.MACaddress, Duplicates.Total, tblAssets.Lastseen,
Web40OSName.Compimage As icon
From tblAssets Inner Join
web40ActiveComputers On web40ActiveComputers.AssetID =
tblAssets.AssetID Inner Join
tblOperatingsystem On tblAssets.AssetID =
tblOperatingsystem.AssetID Inner Join
Web40OSName On Web40OSName.AssetID = tblAssets.AssetID Inner Join
tblNetwork On tblAssets.AssetID = tblNetwork.AssetID Inner Join
(Select Top 1000000 tblNetwork.MACaddress, Count(Distinct
tblNetwork.AssetID) As Total
From tblAssets Inner Join
web40ActiveComputers On web40ActiveComputers.AssetID =
tblAssets.AssetID Inner Join
tblNetwork On tblAssets.AssetID = tblNetwork.AssetID
Where tblNetwork.IPEnabled = 1
Group By tblNetwork.MACaddress
Having (tblNetwork.MACaddress <> '' And tblNetwork.MACaddress <>
'50:50:54:50:30:30' And tblNetwork.MACaddress <> '33:50:6F:45:30:30') And
Count(Distinct tblNetwork.AssetID) > 1) Duplicates On
tblNetwork.MACaddress = Duplicates.MACaddress
Order By Duplicates.Total Desc, Duplicates.MACaddress, tblAssets.AssetName
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now