<= (lt eq sign) operator

Applies to: check marked yes Databricks SQL check marked yes Databricks Runtime

Returns true if expr1 is less than or equal to expr2, or false otherwise.

Syntax

expr1 <= expr2

Arguments

  • expr1: An expression of any comparable type.

  • expr2: An expression that shares a least common type with expr1.

Returns

A BOOLEAN.

Examples

> SELECT 2 <= 2;
 true
> SELECT 1.0 <= '1';
 true
> SELECT to_date('2009-07-30 04:17:52') <= to_date('2009-07-30 04:17:52');
 true
> SELECT to_date('2009-07-30 04:17:52') <= to_date('2009-08-01 04:17:52');
 true
> SELECT 1 <= NULL;
 NULL