Jun 26, 2007 #1 Olivia123 MIS Apr 19, 2007 29 US I was wondering if I can wright something like this.... Code: a.CALL_CC IS BETWEEN NULL AND b.CA_CC1 This is actually the logic that I need, but, it won't work , is there any other way I can wright it, and use this logic. Thank you
I was wondering if I can wright something like this.... Code: a.CALL_CC IS BETWEEN NULL AND b.CA_CC1 This is actually the logic that I need, but, it won't work , is there any other way I can wright it, and use this logic. Thank you
Jun 26, 2007 1 #2 PHV MIS Nov 8, 2002 53,708 FR Which logic ? Consider NULL as unknown and explain us which logic may determine if a value is between an unknown value and another value. Hope This Helps, PH. FAQ219-2884 FAQ181-2886 Upvote 0 Downvote
Which logic ? Consider NULL as unknown and explain us which logic may determine if a value is between an unknown value and another value. Hope This Helps, PH. FAQ219-2884 FAQ181-2886
Jun 26, 2007 Thread starter #3 Olivia123 MIS Apr 19, 2007 29 US Is there anyway I can set the null value as '0' or '1' ? Upvote 0 Downvote
Jun 26, 2007 #4 PHV MIS Nov 8, 2002 53,708 FR In fact, you want something like this ? WHERE (a.CALL_CC IS NULL OR a.CALL_CC BETWEEN 0 AND b.CA_CC1) Or this ? WHERE COALESCE(a.CALL_CC, 0) BETWEEN 0 AND b.CA_CC1) Hope This Helps, PH. FAQ219-2884 FAQ181-2886 Upvote 0 Downvote
In fact, you want something like this ? WHERE (a.CALL_CC IS NULL OR a.CALL_CC BETWEEN 0 AND b.CA_CC1) Or this ? WHERE COALESCE(a.CALL_CC, 0) BETWEEN 0 AND b.CA_CC1) Hope This Helps, PH. FAQ219-2884 FAQ181-2886
Jun 26, 2007 Thread starter #5 Olivia123 MIS Apr 19, 2007 29 US Thank you, the second one helped me out, I wasn't familiar with COALESCE Upvote 0 Downvote