range

Range difference

Subtracts the second range; a result split into two nonempty pieces requires multirange subtraction.

Formal Syntax & Structure

sql syntaxsql
range1 - range2

Working Example

Example Snippetsql
SELECT int4range(1,8) - int4range(5,9);
SQL Reference