mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
957d23267b
For detailed description see the related PR
7 lines
186 B
SQL
7 lines
186 B
SQL
DROP TABLE IF EXISTS test.test;
|
|
CREATE TABLE test.test (a UInt8, b UInt8, c UInt16 ALIAS a + b) ENGINE = MergeTree ORDER BY a;
|
|
|
|
SELECT b FROM test.test PREWHERE c = 1;
|
|
|
|
DROP TABLE test;
|