Details
-
Task
-
Status: Closed
-
Trivial
-
Resolution: Invalid
-
10.3.1.4
-
None
-
None
Description
The documentation for NULLIF could be improved as it doesn't explain what NULLIF does at
http://db.apache.org/derby/manuals/reference/sqlj66.html#NULLIF+and+CASE+expressions
I believe the behaviour is that if both arguments are equal it returns NULL otherwise it returns the first value
e.g.
NULLIF(L, R)
is equivalent to:
CASE WHEN L=R THEN NULL ELSE L END