chore(*.psql): consistent delimiter in file names

This commit is contained in:
Cory Dransfeldt 2025-04-02 17:09:51 -07:00
parent 9d4826d72b
commit 3035f76e06
No known key found for this signature in database
11 changed files with 6 additions and 6 deletions

View file

@ -0,0 +1,13 @@
SELECT
l.artist_name,
TO_CHAR(COUNT(l.id), 'FM999,999,999') AS total_listens
FROM
optimized_listens l
WHERE
EXTRACT(YEAR FROM TO_TIMESTAMP(l.listened_at)) = EXTRACT(YEAR FROM CURRENT_DATE)
AND l.artist_name IS NOT NULL
GROUP BY
l.artist_name
ORDER BY
COUNT(l.id) DESC
LIMIT 10;