Difference between revisions of "NULL Predicate"

From Recital Documentation Wiki
Jump to: navigation, search
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=NULL PREDICATE=
 
 
 
==Class==
 
SQL Applications
 
 
 
 
==Purpose==
 
==Purpose==
 
Special predicate
 
Special predicate
Line 15: Line 8:
  
 
==See Also==
 
==See Also==
[[PREDICATES]], [[SQL INSERT|INSERT]], [[SQL SELECT|SELECT]], [[SQL UPDATE|UPDATE]]
+
[[SQL INSERT|INSERT]], [[SQL Predicates|PREDICATES]], [[SQL SELECT|SELECT]], [[SQL UPDATE|UPDATE]]
  
  
Line 24: Line 17:
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
 
+
SELECT name, address, balance, cost*1.15;
EXEC SQL
+
  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>
  
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital, Recital Server
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:SQL]]
 
[[Category:SQL]]

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