ClickHouse/dbms/tests/queries/0_stateless/00834_date_datetime_cmp.sql
2019-02-02 09:00:29 -08:00

5 lines
234 B
SQL

SELECT toDateTime('2017-06-28 12:01:01') < toDate('2017-07-01');
SELECT toDateTime('2017-06-28 12:01:01') > toDate('2017-07-01');
SELECT toDate('2017-06-28') < toDate('2017-07-01');
SELECT toDate('2017-06-28') > toDate('2017-07-01');