mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
41 lines
454 B
Plaintext
41 lines
454 B
Plaintext
SELECT
|
|
date,
|
|
id,
|
|
name,
|
|
value
|
|
FROM
|
|
(
|
|
SELECT *
|
|
FROM default.test
|
|
HAVING id = 1
|
|
) AS test_view
|
|
WHERE id = 1
|
|
SELECT
|
|
date,
|
|
id,
|
|
name,
|
|
value
|
|
FROM
|
|
(
|
|
SELECT *
|
|
FROM default.test
|
|
HAVING id = 2
|
|
) AS test_view
|
|
WHERE id = 2
|
|
SELECT id
|
|
FROM
|
|
(
|
|
SELECT *
|
|
FROM default.test
|
|
HAVING id = 1
|
|
) AS test_view
|
|
WHERE id = 1
|
|
SELECT id
|
|
FROM
|
|
(
|
|
SELECT *
|
|
FROM default.test
|
|
HAVING id = 1
|
|
) AS s
|
|
WHERE id = 1
|