We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b69b91 commit cd7b5b8Copy full SHA for cd7b5b8
supabase/migrations/20250202103942_count_view.sql
@@ -0,0 +1,8 @@
1
+CREATE VIEW listened_count AS
2
+SELECT hooman.lastfm_user,
3
+ COUNT(listened.id) as count
4
+FROM listened
5
+ LEFT JOIN hooman ON listened.hooman_id = hooman.id
6
+GROUP BY hooman.lastfm_user
7
+ORDER BY count DESC
8
+;
0 commit comments