mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 03:25:15 +00:00
20 lines
455 B
SQL
20 lines
455 B
SQL
SELECT toYear(d) AS y, count()
|
|
FROM ( SELECT today() AS d WHERE 0)
|
|
GROUP BY y
|
|
ORDER BY y ASC WITH FILL FROM 2019 TO 2023;
|
|
|
|
SELECT toYear(d) AS y, count()
|
|
FROM ( SELECT today() AS d WHERE 0)
|
|
GROUP BY y
|
|
ORDER BY y ASC WITH FILL FROM 2019;
|
|
|
|
SELECT toYear(d) AS y, count()
|
|
FROM ( SELECT today() AS d WHERE 0)
|
|
GROUP BY y
|
|
ORDER BY y ASC WITH FILL TO 2023;
|
|
|
|
SELECT toYear(d) AS y, count()
|
|
FROM ( SELECT today() AS d WHERE 0)
|
|
GROUP BY y
|
|
ORDER BY y ASC WITH FILL;
|