2019-06-03 17:36:27 +00:00
|
|
|
DROP TEMPORARY TABLE IF EXISTS test_00744;
|
|
|
|
CREATE TEMPORARY TABLE test_00744
|
2018-10-17 05:50:40 +00:00
|
|
|
(
|
|
|
|
x Int32
|
|
|
|
);
|
|
|
|
|
2019-06-03 17:36:27 +00:00
|
|
|
INSERT INTO test_00744 VALUES (1);
|
2018-10-17 05:50:40 +00:00
|
|
|
|
|
|
|
SELECT x
|
|
|
|
FROM
|
|
|
|
(
|
|
|
|
SELECT
|
|
|
|
x,
|
|
|
|
1
|
2019-06-03 17:36:27 +00:00
|
|
|
FROM test_00744
|
2018-10-17 05:50:40 +00:00
|
|
|
ALL INNER JOIN
|
|
|
|
(
|
|
|
|
SELECT
|
|
|
|
count(),
|
|
|
|
1
|
2019-06-03 17:36:27 +00:00
|
|
|
FROM test_00744
|
2019-08-29 18:45:34 +00:00
|
|
|
) jss2 USING (1)
|
2018-10-17 05:50:40 +00:00
|
|
|
LIMIT 10
|
|
|
|
);
|
|
|
|
|
|
|
|
SELECT
|
|
|
|
x,
|
|
|
|
1
|
2019-06-03 17:36:27 +00:00
|
|
|
FROM test_00744
|
2018-10-17 05:50:40 +00:00
|
|
|
ALL INNER JOIN
|
|
|
|
(
|
|
|
|
SELECT
|
|
|
|
count(),
|
|
|
|
1
|
2019-06-03 17:36:27 +00:00
|
|
|
FROM test_00744
|
2019-08-29 18:45:34 +00:00
|
|
|
) js2 USING (1)
|
2018-10-17 05:50:40 +00:00
|
|
|
LIMIT 10;
|