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 ad1ccb5 commit cfe5ffcCopy full SHA for cfe5ffc
SQL/14주차/DH_Movie Rating.sql
@@ -0,0 +1,12 @@
1
+(SELECT b.NAME `results`
2
+ FROM MOVIERATING a LEFT JOIN USERS b ON a.USER_ID = b.USER_ID
3
+ GROUP BY a.USER_ID
4
+ ORDER BY COUNT(a.USER_ID) DESC, b.NAME ASC
5
+ LIMIT 1)
6
+UNION ALL
7
+(SELECT b.title `results`
8
+ FROM MOVIERATING a LEFT JOIN MOVIES b ON a.MOVIE_ID = b.MOVIE_ID
9
+ WHERE CREATED_AT LIKE '2020-02-%'
10
+ GROUP BY a.MOVIE_ID
11
+ ORDER BY AVG(a.RATING) DESC, b.TITLE ASC
12
0 commit comments