>
(gt sign) operator
Applies to: Databricks SQL Databricks Runtime
Returns true
if expr1
is greater than expr2
, or false
otherwise.
Syntax
expr1 > expr2
Arguments
expr1
: An expression of any comparable type.expr2
: An expression sharing a least common type withexpr1
.
Returns
A BOOLEAN.
Examples
> SELECT 2 > 1;
true
> SELECT 2 > '1.1';
true
> SELECT to_date('2009-07-30 04:17:52') > to_date('2009-07-30 04:17:52');
false
> SELECT to_date('2009-07-30 04:17:52') > to_date('2009-08-01 04:17:52');
false
> SELECT 1 > NULL;
NULL
Related
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for