Notification

Icon
Error

Assets Missing Quickfix Data - Last 60 Days

Posted: Friday, November 8, 2019 10:16:48 PM(UTC)
Mike6436

Mike6436

Member Original PosterPosts: 34
1
Like
The code below displays assets that haven't received patches (quickfixes) in the last 60 days. However, assets that haven't received any patches are missing. How can I include the logic 'tblQuickFixEngineering.InstalledOn = NULL' to the query below?

Code:
Select Top 1000000 tblAssets.AssetID,
  tblAssets.AssetName,
  tsysOS.OSname,
  tblAssets.Username,
  tblAssets.IPAddress,
  tblAssets.Description,
  Max(Convert(date,tblQuickFixEngineering.InstalledOn)) As lastPatchDate,
  tblAssets.Lastseen
From tblQuickFixEngineering
  Join tblAssets On tblAssets.AssetID = tblQuickFixEngineering.AssetID
  Join tsysOS On tblAssets.OScode = tsysOS.OScode
Where tsysOS.OSname Not In ('') And IsDate(tblQuickFixEngineering.InstalledOn) =
  1
Group By tblAssets.AssetID,
  tblAssets.AssetName,
  tsysOS.OSname,
  tblAssets.Username,
  tblAssets.IPAddress,
  tblAssets.Description,
  tblAssets.Lastseen,
  IsDate(tblQuickFixEngineering.InstalledOn)
Having Max(Convert(date,tblQuickFixEngineering.InstalledOn)) < GetDate() - 60
Order By lastPatchDate Desc
Mike6436
#1Mike6436 Member Original PosterPosts: 34  
posted: 11/11/2019 6:11:30 PM(UTC)
I'm also having a hell of a time trying to build a chart off of OSname.

I tried the following but the data is definitely wrong. Suggestions?

Code:
Select Top 1000000 tsysOS.OSname,
  Count(tblAssets.AssetID) As Total
From tblQuickFixEngineering
  Join tblAssets On tblAssets.AssetID = tblQuickFixEngineering.AssetID
  Join tsysOS On tblAssets.OScode = tsysOS.OScode
  Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Where tsysOS.OSname Not In ('') And tblAssetCustom.State = 1 And
  IsDate(tblQuickFixEngineering.InstalledOn) = 1
Group By tsysOS.OSname
Having Max(Convert(date,tblQuickFixEngineering.InstalledOn)) < GetDate() - 60
Order By Total Desc

Active Discussions

Lansweeper All USB devices connected
by  RC62N  
Go to last post Go to first unread
Last post: Yesterday at 6:40:58 PM(UTC)
Lansweeper Software audit with installation date
by  RC62N   Go to last post Go to first unread
Last post: 7/3/2020 3:39:41 PM(UTC)
Lansweeper Duplicates (3-4) in report please helppppp!
by  AlexMZetec  
Go to last post Go to first unread
Last post: 7/2/2020 3:15:16 PM(UTC)
Lansweeper Report to find all computers with no logon data
by  Andy.S  
Go to last post Go to first unread
Last post: 7/2/2020 9:55:53 AM(UTC)
Lansweeper Change processes report to show opposite results
by  RC62N   Go to last post Go to first unread
Last post: 6/29/2020 9:38:46 PM(UTC)
Lansweeper Keep link to items when using column names
by  Tom Galvin  
Go to last post Go to first unread
Last post: 6/27/2020 12:16:03 AM(UTC)