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 iManage Client deployment
by  CyberCitizen   Go to last post Go to first unread
Last post: Today at 3:09:47 AM(UTC)
Lansweeper Missing hyperv host details for guest asset LAN-4130
by  danielm  
Go to last post Go to first unread
Last post: 12/7/2019 7:15:56 AM(UTC)
Lansweeper Lansweeper showing MAC address instead of name
by  crashff   Go to last post Go to first unread
Last post: 12/6/2019 10:26:25 PM(UTC)
Lansweeper Dell Warranty Lookup - Incorrect Information
by  Trenton Knew  
Go to last post Go to first unread
Last post: 12/6/2019 10:17:15 PM(UTC)
Lansweeper Incoming Email Parse
by  UEFT   Go to last post Go to first unread
Last post: 12/6/2019 5:46:22 PM(UTC)
Lansweeper SSH - Keyboard Interactive Authentication
by  KevinA-REJIS  
Go to last post Go to first unread
Last post: 12/6/2019 5:22:21 PM(UTC)
Lansweeper Custom OID Scanning / multible OIDs with wildcards
by  Esben.D  
Go to last post Go to first unread
Last post: 12/6/2019 11:57:18 AM(UTC)