Navigation:  NexusDB Guide > SQL Reference > Predicates >

Null Predicate

Previous pageReturn to chapter overviewNext page

NexusDB V3 Manual

Null Predicate

button_main button_prev button_next

NexusDB Manual V3 > SQL Reference > Predicates

Specify a test for a null value.

 

Syntax

 

<null predicate> ::=

<null predicate part 2> ::= IS [ NOT ] NULL

 

 

Notes

 

§

The degree of the row value predicand shall be 1.

 

§

IS NULL evaluates to TRUE if the row value is null, else to FALSE.

 

§

IS NOT NULL evaluates to TRUE if the row value is different from null, else to FALSE.

 

 

Examples

 

1)

The following example selects students who don't take any courses:

 

      SELECT studentID, studentName

      FROM students s

      left join enrolls e ON e.studentID = s.studentID

      WHERE e.studentID IS NULL

 

 


Conformance

 

SQL:2003 standard

-

-

Core SQL

Feature F481 "Expanded NULL predicate"

 

© Nexus Database Systems Pty Ltd.

nexus_logo