‎05-08-2013 07:36 PM
Solved! Go to Solution.
‎05-08-2013 11:17 PM
SELECT tsysOS.Image AS icon, tblAssets.AssetID, tblAssets.AssetName, tblAssets.Domain, tblAssets.IPAddress, tsysIPLocations.IPLocation, tsysOS.OSname, tblAssets.SP,
tblAssets.Firstseen, tblAssets.Lastseen
FROM tblAssets INNER JOIN
tblAssetCustom ON tblAssets.AssetID = tblAssetCustom.AssetID INNER JOIN
tsysOS ON tblAssets.OScode = tsysOS.OScode LEFT OUTER JOIN
tsysIPLocations ON tblAssets.IPNumeric >= tsysIPLocations.StartIP AND tblAssets.IPNumeric <= tsysIPLocations.EndIP
WHERE (tblAssetCustom.State = 1) AND (NOT (tblAssets.AssetID IN
(SELECT tblQuickFixEngineering.AssetID
FROM tblQuickFixEngineering INNER JOIN
tblQuickFixEngineeringUni ON tblQuickFixEngineeringUni.QFEID = tblQuickFixEngineering.QFEID
WHERE (tblQuickFixEngineeringUni.HotFixID = 'KB943729')))) AND (tsysOS.OSname = 'win xp')
ORDER BY tsysIPLocations.IPLocation, tblAssets.AssetName
‎05-14-2013 07:10 AM
‎05-14-2013 06:28 PM
Srikanth08 wrote:
if it other OS means, like i want to check in all OS means how to update this query?
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblAssets.Lasttried
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Where tblAssets.AssetID Not In (Select tblQuickFixEngineering.AssetID
From tblQuickFixEngineering Inner Join tblQuickFixEngineeringUni
On tblQuickFixEngineeringUni.QFEID = tblQuickFixEngineering.QFEID
Where tblQuickFixEngineeringUni.HotFixID = 'YourFix') And
tsysAssetTypes.AssetTypename = 'windows' And tblAssetCustom.State = 1
‎05-09-2013 12:59 AM
‎05-08-2013 11:17 PM
SELECT tsysOS.Image AS icon, tblAssets.AssetID, tblAssets.AssetName, tblAssets.Domain, tblAssets.IPAddress, tsysIPLocations.IPLocation, tsysOS.OSname, tblAssets.SP,
tblAssets.Firstseen, tblAssets.Lastseen
FROM tblAssets INNER JOIN
tblAssetCustom ON tblAssets.AssetID = tblAssetCustom.AssetID INNER JOIN
tsysOS ON tblAssets.OScode = tsysOS.OScode LEFT OUTER JOIN
tsysIPLocations ON tblAssets.IPNumeric >= tsysIPLocations.StartIP AND tblAssets.IPNumeric <= tsysIPLocations.EndIP
WHERE (tblAssetCustom.State = 1) AND (NOT (tblAssets.AssetID IN
(SELECT tblQuickFixEngineering.AssetID
FROM tblQuickFixEngineering INNER JOIN
tblQuickFixEngineeringUni ON tblQuickFixEngineeringUni.QFEID = tblQuickFixEngineering.QFEID
WHERE (tblQuickFixEngineeringUni.HotFixID = 'KB943729')))) AND (tsysOS.OSname = 'win xp')
ORDER BY tsysIPLocations.IPLocation, tblAssets.AssetName
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now