[ NOT ] BETWEEN (Lakehouse v1)
Returns true if the given numeric or string <expr> falls inside the defined lower and upper limits.
Analyze Syntax
Section titled “Analyze Syntax”table.column.between(<lower_limit>, <upper_limit>Analyze Examples
Section titled “Analyze Examples”table.column.between(0, 5)SQL Syntax
Section titled “SQL Syntax”<expr> [ NOT ] BETWEEN <lower_limit> AND <upper_limit>SQL Examples
Section titled “SQL Examples”SELECT 'true' WHERE 5 BETWEEN 0 AND 5;
┌────────┐│ 'true' │├────────┤│ true │└────────┘
SELECT 'true' WHERE 'data' BETWEEN 'data' AND 'databendcloud';
┌────────┐│ 'true' │├────────┤│ true │└────────┘