| Server IP : 172.67.156.203 / Your IP : 216.73.216.72 Web Server : Apache System : Linux gator4057.hostgator.com 5.14.0-687.17.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jun 22 07:21:26 EDT 2026 x86_64 User : badawi ( 1130) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/doc/firebird/sql.extensions/ |
Upload File : |
------------------
DISTINCT predicate
------------------
Function:
Specify a test of whether two row values are distinct.
Author:
Oleg Loa <[email protected]>
Dmitry Yemanov <[email protected]>
Syntax rules:
<value> IS [NOT] DISTINCT FROM <value>
Scope:
DSQL, PSQL
Example(s):
1. SELECT * FROM T1 JOIN T2 ON T1.NAME IS NOT DISTINCT FROM T2.NAME;
2. SELECT * FROM T WHERE T.MARK IS DISTINCT FROM 'test'
Note(s):
1. A DISTINCT predicate evaluates very similar to an equality predicate with
the only difference that two NULL values are considered not distinct. As a result,
this predicate never evaluates to UNKNOWN truth value (the same as IS [NOT] NULL
predicate behaves).
2. The NOT DISTINCT predicate can be optimized via an index, if exists.