Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 9405

DB2 :: RE: VALIDATE NULL VALUE IN DB2 CASE STATEMENT

$
0
0
Author: Arun Raj
Posted: Thu Feb 09, 2017 7:20 pm (GMT 5.5)

Just curious, are you attempting something like this? Or maybe I am confused about the 'case' requirement and the '= NULL' issue icon_rolleyes.gif
Code:
WHERE (IND =  'Y' AND A.TERM_DATE IS NULL) OR
      (IND <> 'Y')

_________________
Arun
----------------------------------------------------------------------------------------------------
Love is like an hourglass, with the heart filling up as the brain empties. -Jules Renard


Viewing all articles
Browse latest Browse all 9405

Trending Articles