mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +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;
|