mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 22:12:21 +00:00
18 lines
254 B
SQL
18 lines
254 B
SQL
SELECT
|
|
DomainID,
|
|
Domain
|
|
FROM
|
|
(
|
|
SELECT 1 AS DomainID FROM system.one
|
|
) js1
|
|
ANY LEFT JOIN
|
|
(
|
|
SELECT
|
|
1 AS DomainID,
|
|
'abc' AS Domain
|
|
UNION ALL
|
|
SELECT
|
|
2 AS DomainID,
|
|
'def' AS Domain
|
|
) js2 USING DomainID;
|