mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 17:44:23 +00:00
18 lines
561 B
Plaintext
18 lines
561 B
Plaintext
-- { echo }
|
|
select exists(select 1);
|
|
1
|
|
select exists(select 1 except select 1);
|
|
0
|
|
select exists(select number from numbers(10) where number > 0);
|
|
1
|
|
select exists(select number from numbers(10) where number < 0);
|
|
0
|
|
select count() from numbers(10) where exists(select 1 except select 1);
|
|
0
|
|
select count() from numbers(10) where exists(select 1 intersect select 1);
|
|
10
|
|
select count() from numbers(10) where exists(select number from numbers(10) where number > 8);
|
|
10
|
|
select count() from numbers(10) where exists(select number from numbers(10) where number > 9);
|
|
0
|