ClickHouse/tests/queries/0_stateless/03242_view_block_structure.sql
2024-09-22 23:25:02 +02:00

19 lines
221 B
SQL

DROP TABLE IF EXISTS a;
DROP TABLE IF EXISTS b;
CREATE VIEW a AS
SELECT 'a' AS id;
CREATE VIEW b AS
SELECT
'a' AS id,
'b' as other
;
SELECT *
FROM b
WHERE id IN (SELECT id from a);
DROP TABLE a;
DROP TABLE b;