→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎12-15-2014 03:13 PM
Solved! Go to Solution.
‎12-23-2014 07:15 PM
Select Top 1000000 Case
When CharIndex('/', tblQuickFixEngineering.InstalledOn) > 0 Then
Convert(datetime,tblQuickFixEngineering.InstalledOn,101)
Else Convert(Datetime,'1/1/1900',101) End As [Install date],
Count(tblAssets.AssetID) As Number
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblQuickFixEngineering On tblAssets.AssetID =
tblQuickFixEngineering.AssetID
Inner Join tblQuickFixEngineeringUni On tblQuickFixEngineeringUni.QFEID =
tblQuickFixEngineering.QFEID
Where tblQuickFixEngineeringUni.HotFixID = 'KB3003057' And
tblAssetCustom.State = 1 And GetDate() - 30 < Case
When CharIndex('/', tblQuickFixEngineering.InstalledOn) > 0 Then
Convert(datetime,tblQuickFixEngineering.InstalledOn,101)
Else Convert(Datetime,'1/1/1900',101) End
Group By tblQuickFixEngineering.InstalledOn
Order By tblQuickFixEngineering.InstalledOn
‎12-23-2014 07:15 PM
Select Top 1000000 Case
When CharIndex('/', tblQuickFixEngineering.InstalledOn) > 0 Then
Convert(datetime,tblQuickFixEngineering.InstalledOn,101)
Else Convert(Datetime,'1/1/1900',101) End As [Install date],
Count(tblAssets.AssetID) As Number
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblQuickFixEngineering On tblAssets.AssetID =
tblQuickFixEngineering.AssetID
Inner Join tblQuickFixEngineeringUni On tblQuickFixEngineeringUni.QFEID =
tblQuickFixEngineering.QFEID
Where tblQuickFixEngineeringUni.HotFixID = 'KB3003057' And
tblAssetCustom.State = 1 And GetDate() - 30 < Case
When CharIndex('/', tblQuickFixEngineering.InstalledOn) > 0 Then
Convert(datetime,tblQuickFixEngineering.InstalledOn,101)
Else Convert(Datetime,'1/1/1900',101) End
Group By tblQuickFixEngineering.InstalledOn
Order By tblQuickFixEngineering.InstalledOn
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now