Difference between revisions of "NULL Predicate"
From Recital Documentation Wiki
Helengeorge (Talk | contribs) (→Products) |
Yvonnemilne (Talk | contribs) |
||
Line 8: | Line 8: | ||
==See Also== | ==See Also== | ||
− | [[SQL | + | [[SQL INSERT|INSERT]], [[SQL Predicates|PREDICATES]], [[SQL SELECT|SELECT]], [[SQL UPDATE|UPDATE]] |
Line 17: | Line 17: | ||
==Example== | ==Example== | ||
<code lang="recital"> | <code lang="recital"> | ||
− | + | SELECT name, address, balance, cost*1.15; | |
− | + | FROM accounts; | |
− | SELECT name, address, balance, cost*1.15 | + | WHERE paid_date < date() AND ord_value IS NULL; |
− | FROM accounts | + | ORDER BY name, paid_date |
− | WHERE paid_date < date() AND ord_value IS NULL | + | |
− | ORDER BY name, paid_date | + | |
</code> | </code> | ||
Latest revision as of 17:21, 22 December 2009
Purpose
Special predicate
Syntax
<expression> IS [NOT] NULL
See Also
INSERT, PREDICATES, SELECT, UPDATE
Description
NULL is a special predicate to evaluate whether the specified <expression> is NULL. The optional NOT can be used to evaluate whether the specified <expression> is not NULL.
Example
SELECT name, address, balance, cost*1.15; FROM accounts; WHERE paid_date < date() AND ord_value IS NULL; ORDER BY name, paid_date
Products
Recital, Recital Server