ClickHouse/tests/queries/0_stateless/01051_scalar_optimization.sql

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

7 lines
283 B
MySQL
Raw Normal View History

2020-08-20 02:01:40 +00:00
SELECT (SELECT number FROM numbers(100) ORDER BY number LIMIT 1),
(SELECT number FROM numbers(100) ORDER BY number DESC LIMIT 1);
SELECT 1
WHERE 0=(SELECT number FROM numbers(2) ORDER BY number LIMIT 1)
AND 1=(SELECT number FROM numbers(2) ORDER BY number DESC LIMIT 1);