mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
20 lines
455 B
MySQL
20 lines
455 B
MySQL
|
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;
|