mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-12 02:23:14 +00:00
8 lines
249 B
MySQL
8 lines
249 B
MySQL
|
SELECT count()
|
||
|
FROM numbers(4) AS n1, numbers(3) AS n2
|
||
|
WHERE n1.number > (select avg(n.number) from numbers(3) n);
|
||
|
|
||
|
SELECT count()
|
||
|
FROM numbers(4) AS n1, numbers(3) AS n2, numbers(6) AS n3
|
||
|
WHERE n1.number > (select avg(n.number) from numbers(3) n);
|