ClickHouse/tests/queries/0_stateless/00330_view_subqueries.sql
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

12 lines
255 B
SQL

DROP TABLE IF EXISTS v1;
DROP TABLE IF EXISTS v2;
CREATE VIEW v1 AS SELECT 1 FROM (SELECT 1);
SELECT * FROM v1;
CREATE VIEW v2 AS SELECT number * number FROM (SELECT number FROM system.numbers LIMIT 10);
SELECT * FROM v2;
DROP TABLE v1;
DROP TABLE v2;