ClickHouse/tests/queries/0_stateless/03242_view_block_structure.sql

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

19 lines
221 B
MySQL
Raw Normal View History

2024-09-22 21:25:02 +00:00
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;