MattioMatt
Registered User.
- Local time
- Today, 20:50
- Joined
- Apr 25, 2017
- Messages
- 99
I have a query that pulls a list of vulnerabilities.
In that there is a column called "TicketState". The value is either, Open, Resolved or it's empty.
I've got a where clause in the query to not show anything that is resolved as the list on the form is for open tickets. However I've noticed the query is excluding any records that have a null value when I have this where clause on.
How can I fix this?
In that there is a column called "TicketState". The value is either, Open, Resolved or it's empty.
I've got a where clause in the query to not show anything that is resolved as the list on the form is for open tickets. However I've noticed the query is excluding any records that have a null value when I have this where clause on.
How can I fix this?
Code:
SELECT tblVuln.VulnID, tblAssets.AssetID, tblAssets.IP, tblAssets.ServerName, tblVuln.DNS, tblVuln.QID, tblVuln.Title, tblVuln.Severity, tblVuln.PCIVuln, tblVuln.VulnStatus, tblVuln.TicketState, tblVuln.FirstDetected, tblVuln.LastDetected, tblVuln.[Times Detected]
FROM tblAssets INNER JOIN tblVuln ON tblAssets.IP = tblVuln.IP
WHERE (((tblVuln.TicketState)<>"Resolved"))
ORDER BY tblAssets.ServerName;