ClickHouse/tests/queries/0_stateless/00169_join_constant_keys.sql

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

19 lines
289 B
MySQL
Raw Normal View History

2015-06-09 20:56:40 +00:00
SELECT
key1,
key2,
table_1
FROM
(
SELECT
arrayJoin([1, 2, 3]) AS key1,
0 AS key2,
999 AS table_1
) js1 ALL INNER JOIN
2015-06-09 20:56:40 +00:00
(
SELECT
arrayJoin([1, 3, 2]) AS key1,
0 AS key2,
999 AS table_1
2022-06-07 13:59:30 +00:00
) js2 USING key2, key1
ORDER BY key1;