Forum Discussion
mjsystemss
Sep 14, 2024Copper Contributor
HELP WITH MY WHERE CLAUSE REQUIREMENT
Hello , I need help with examining this query. I have this query below and my requirements. The First Requirement is 1. If appselection !='notice to process' and notetxt is NULL in last month show...
rodgerkong
Sep 14, 2024Iron Contributor
Do you need two different result set? With requirement 1, show acct and notetext. With requirement 2, show acctid.
In your SQL sample, WHERE clause has two same parts of conditions that split by 'OR', what is the purpose?
Give some sample rows and show the result your want, will supply more help to understand your question.
In your SQL sample, WHERE clause has two same parts of conditions that split by 'OR', what is the purpose?
Give some sample rows and show the result your want, will supply more help to understand your question.
mjsystemss
Sep 15, 2024Copper Contributor
The Two conditions are to produce one result set.
The resulting table should be like this;
ACCTID NDATE NOTETXT APPSTATUS
000001 02/06/2023 FIRE INCIDENT NO NOTICE
000002 03/09/2024 MINOR FIRE NOTICE TO PROCESS
000003 09/09/2024 NO INCIDENT NOTICE TO PROCESS
000004 03/07/2024 NO NOTICE