→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎12-12-2014 04:05 PM
Select Top 1000000 tblAssetCustom.AssetID,
tblAssets.AssetUnique,
tsysOS.OSname,
tblAssetCustom.Model,
tblAssetCustom.Serialnumber,
tblAssetCustom.PurchaseDate As [Purchase Date],
tblAssetCustom.Warrantydate As [Warranty Expiration],
tsysOS.Image As icon,
tblAssetCustom.Location,
tblAssets.IPAddress
From tblAssetCustom
Inner Join tblAssets On tblAssetCustom.AssetID = tblAssets.AssetID
Inner Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Where (tblAssetCustom.Warrantydate < GetDate() And tblAssets.IPAddress
Like '192.168.0.%' And tblComputersystem.Domainrole < 2 And
tblAssetCustom.State = 1) Or
(tblAssets.IPAddress Like '192.168.10.%') Or
(tblAssets.IPAddress Like '192.168.20.%')
Order By [Warranty Expiration] Desc
Solved! Go to Solution.
‎12-23-2014 06:11 PM
Where tblAssetCustom.Warrantydate < GetDate() And
tblComputersystem.Domainrole < 2 And
tblAssetCustom.State = 1 And
(tblAssets.IPAddress Like '192.168.0.%' Or
tblAssets.IPAddress Like '192.168.10.%' Or
tblAssets.IPAddress Like '192.168.20.%')
Select Top 1000000 tblAssetCustom.AssetID,
tblAssets.AssetUnique,
tsysOS.OSname,
tblAssetCustom.Model,
tblAssetCustom.Serialnumber,
tblAssetCustom.PurchaseDate As [Purchase Date],
tblAssetCustom.Warrantydate As [Warranty Expiration],
tsysOS.Image As icon,
tblAssetCustom.Location,
tblAssets.IPAddress
From tblAssetCustom
Inner Join tblAssets On tblAssetCustom.AssetID = tblAssets.AssetID
Inner Join tblComputersystem On
tblAssets.AssetID = tblComputersystem.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join tsysIPLocations On tblAssets.IPNumeric Between
tsysIPLocations.StartIP And tsysIPLocations.EndIP
Where tblAssetCustom.Warrantydate < GetDate() And
tblComputersystem.Domainrole < 2 And
tblAssetCustom.State = 1 And
tsysIPLocations.IPLocation In
('Berlin','London','Moscow')
Order By [Warranty Expiration] Desc
‎12-23-2014 06:11 PM
Where tblAssetCustom.Warrantydate < GetDate() And
tblComputersystem.Domainrole < 2 And
tblAssetCustom.State = 1 And
(tblAssets.IPAddress Like '192.168.0.%' Or
tblAssets.IPAddress Like '192.168.10.%' Or
tblAssets.IPAddress Like '192.168.20.%')
Select Top 1000000 tblAssetCustom.AssetID,
tblAssets.AssetUnique,
tsysOS.OSname,
tblAssetCustom.Model,
tblAssetCustom.Serialnumber,
tblAssetCustom.PurchaseDate As [Purchase Date],
tblAssetCustom.Warrantydate As [Warranty Expiration],
tsysOS.Image As icon,
tblAssetCustom.Location,
tblAssets.IPAddress
From tblAssetCustom
Inner Join tblAssets On tblAssetCustom.AssetID = tblAssets.AssetID
Inner Join tblComputersystem On
tblAssets.AssetID = tblComputersystem.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join tsysIPLocations On tblAssets.IPNumeric Between
tsysIPLocations.StartIP And tsysIPLocations.EndIP
Where tblAssetCustom.Warrantydate < GetDate() And
tblComputersystem.Domainrole < 2 And
tblAssetCustom.State = 1 And
tsysIPLocations.IPLocation In
('Berlin','London','Moscow')
Order By [Warranty Expiration] Desc
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now