chore(*.psql/*.sql): update all *.psql to *.sql files
This commit is contained in:
parent
c9015a7f2b
commit
fc37600b8b
63 changed files with 21 additions and 41 deletions
|
@ -1,13 +0,0 @@
|
|||
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