mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 13:42:02 +00:00
16 lines
481 B
SQL
16 lines
481 B
SQL
DROP TABLE IF EXISTS Alpha;
|
|
DROP TABLE IF EXISTS Beta;
|
|
|
|
CREATE TABLE Alpha (foo String, bar UInt64) ENGINE = Memory;
|
|
CREATE TABLE Beta (foo LowCardinality(String), baz UInt64) ENGINE = Memory;
|
|
|
|
INSERT INTO Alpha VALUES ('a', 1);
|
|
INSERT INTO Beta VALUES ('a', 2), ('b', 3);
|
|
|
|
SELECT * FROM Alpha FULL JOIN (SELECT 'b' as foo) USING (foo);
|
|
SELECT * FROM Alpha FULL JOIN Beta USING (foo);
|
|
SELECT * FROM Alpha FULL JOIN Beta ON Alpha.foo = Beta.foo;
|
|
|
|
DROP TABLE Alpha;
|
|
DROP TABLE Beta;
|