chore(*.sql): use sql-formatter for sql formatting

This commit is contained in:
Cory Dransfeldt 2025-06-14 17:10:41 -07:00
parent cf1ee4c97f
commit 1d7f13d1f5
No known key found for this signature in database
63 changed files with 4432 additions and 2358 deletions

View file

@ -3,7 +3,12 @@ SELECT
ol.genre_name,
ol.genre_url,
COUNT(*) AS plays,
json_build_object('alt', ol.genre_name, 'subtext', CONCAT(COUNT(*), ' plays')) AS grid
json_build_object(
'alt',
ol.genre_name,
'subtext',
CONCAT(COUNT(*), ' plays')
) AS grid
FROM
optimized_listens ol
WHERE
@ -13,4 +18,3 @@ GROUP BY
ol.genre_url
ORDER BY
plays DESC;