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 Software Missing Report
by  RC62N   Go to last post Go to first unread
Last post: 12/6/2019 6:09:28 PM(UTC)
Lansweeper Assets without Asset Location
by  JLangthaler  
Go to last post Go to first unread
Last post: 12/5/2019 12:44:19 PM(UTC)
Lansweeper Installed Memory report
by  lansend   Go to last post Go to first unread
Last post: 12/2/2019 8:15:53 PM(UTC)
Lansweeper Custom OID Report
by  bramassendorp  
Go to last post Go to first unread
Last post: 12/2/2019 4:42:48 PM(UTC)
Lansweeper Report thats showing Windows machines when AV is not like =
by  RC62N   Go to last post Go to first unread
Last post: 11/28/2019 5:56:51 PM(UTC)
Lansweeper dhcp addresses available
by  Cesco93   Go to last post Go to first unread
Last post: 11/28/2019 2:56:02 PM(UTC)
Lansweeper All Assets Report on all IP-addresses and MAC-addresses
by  Tommy75  
Go to last post Go to first unread
Last post: 11/27/2019 11:54:44 AM(UTC)