ClickHouse/tests/queries/0_stateless/01143_trivial_count_with_join.sql
2020-06-05 01:01:40 +03:00

11 lines
341 B
SQL

drop table if exists t;
create table t engine Memory as select * from numbers(2);
select count(*) from t, numbers(2) r;
select count(*) from t cross join numbers(2) r;
select count() from t cross join numbers(2) r;
select count(t.number) from t cross join numbers(2) r;
select count(r.number) from t cross join numbers(2) r;
drop table t;