ClickHouse/tests/queries/0_stateless/01638_div_mod_ambiguities.sql
2021-01-05 23:10:10 +03:00

10 lines
499 B
SQL

SELECT DIV AS MOD FROM (SELECT 1 `DIV`) FORMAT TSVWithNames;
SELECT DIV `MOD` FROM (SELECT 1 `DIV`) FORMAT TSVWithNames;
SELECT DIV MOD 1 FROM (SELECT 1 `DIV`) FORMAT TSVWithNames;
SELECT 1 DIV `MOD` `DIV` FROM (SELECT 1 `MOD`) FORMAT TSVWithNames;
SELECT DIV AS mod FROM (SELECT 1 `DIV`) FORMAT TSVWithNames;
SELECT div `MOD` FROM (SELECT 1 `div`) FORMAT TSVWithNames;
SELECT DIV mod 1 FROM (SELECT 1 `DIV`) FORMAT TSVWithNames;
SELECT 1 div `mod` `div` FROM (SELECT 1 `mod`) FORMAT TSVWithNames;