05-28-2012 12:18 PM
Solved! Go to Solution.
03-23-2015 02:30 PM
03-23-2015 02:30 PM
03-11-2013 05:38 AM
03-11-2013 04:44 PM
wgknowles wrote:
Can you provide updated SQL Syntax for version 5?
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen
From tblAssets
Inner Join (Select Top 1000000 Count(tblAssets.AssetID) As IPCount,
tblAssets.IPAddress
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Where tblAssetCustom.State = 1
Group By tblAssets.IPAddress
Having Count(tblAssets.AssetID) > 1) DuplicateIP On tblAssets.IPAddress =
DuplicateIP.IPAddress
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Where tblAssetCustom.State = 1
Order By tblAssets.IPNumeric
wgknowles wrote:
Any chance of an automatic name change protocol in Version 5?
05-30-2012 11:43 AM
Select tblComputers.Computername, tblComputers.ComputerUnique,
tblComputers.Domain, tblComputers.Firstseen, tblComputers.Lastseen,
tblComputers.LastknownIP
From tblComputers Inner Join
(Select Count(tblComputers.Computername) As [IP Count],
tblComputers.LastknownIP
From tblComputers
Group By tblComputers.LastknownIP
Having Count(tblComputers.Computername) > 1) DuplicateIP On
DuplicateIP.LastknownIP = tblComputers.LastknownIP
Order By tblComputers.ComputerUnique
05-29-2012 06:22 PM
05-29-2012 06:11 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now