ClickHouse/tests/queries/0_stateless/02044_exists_operator.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
545 B
MySQL
Raw Normal View History

2021-10-04 13:08:41 +00:00
-- { echo }
select exists(select 1);
select exists(select 1 except select 1);
select exists(select number from numbers(10) where number > 0);
select exists(select number from numbers(10) where number < 0);
select count() from numbers(10) where exists(select 1 except select 1);
select count() from numbers(10) where exists(select 1 intersect select 1);
select count() from numbers(10) where exists(select number from numbers(10) where number > 8);
select count() from numbers(10) where exists(select number from numbers(10) where number > 9);