ClickHouse/tests/queries/0_stateless/00330_view_subqueries.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
255 B
MySQL
Raw Normal View History

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;