chore(*.psql): consistent delimiter in file names
This commit is contained in:
parent
9d4826d72b
commit
3035f76e06
11 changed files with 6 additions and 6 deletions
13
queries/selects/top_artists.psql
Normal file
13
queries/selects/top_artists.psql
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue