LeetCode(数据库)- 电影评分

简介: LeetCode(数据库)- 电影评分

题目链接:点击打开链接

题目大意:略。

解题思路:略。

AC 代码

(SELECTnameresultsFROMMovie_RatingmrJOINUsersuONmr.user_id=u.user_idGROUPBYmr.user_idORDERBYCOUNT(*) DESC, nameLIMIT1)
UNIONALL(SELECTtitleFROMMovie_RatingmrJOINMoviesmONmr.movie_id=m.movie_idWHEREDATE_FORMAT(created_at, '%Y-%m') ='2020-02'GROUPBYmr.movie_idORDERBYAVG(rating) DESC, titleLIMIT1)
目录
相关文章
|
5月前
|
SQL
leetcode-SQL-1341. 电影评分
leetcode-SQL-1341. 电影评分
41 0
|
数据库
数据库LeetCode每日练习(三)
数据库LeetCode每日练习(三)
数据库LeetCode每日练习(三)
|
SQL 数据库
数据库LeetCode每日练习(二)
数据库LeetCode每日练习(二)
数据库LeetCode每日练习(二)
|
SQL 数据库
数据库LeetCode每日练习(一)
数据库LeetCode每日练习(一)
数据库LeetCode每日练习(一)
|
数据库
LeetCode(数据库)- Hopper Company Queries II
LeetCode(数据库)- Hopper Company Queries II
91 0
LeetCode(数据库)- Hopper Company Queries II
|
数据库
LeetCode(数据库)- 2142. The Number of Passengers in Each Bus I
LeetCode(数据库)- 2142. The Number of Passengers in Each Bus I
193 0
|
数据库
LeetCode(数据库)- The Number of Seniors and Juniors to Join the Company II
LeetCode(数据库)- The Number of Seniors and Juniors to Join the Company II
108 0
|
数据库
LeetCode(数据库)- Number of Accounts That Did Not Stream
LeetCode(数据库)- Number of Accounts That Did Not Stream
112 0
|
数据库
LeetCode(数据库)- The Airport With the Most Traffic
LeetCode(数据库)- The Airport With the Most Traffic
121 0
|
数据库
LeetCode(数据库)- The Category of Each Member in the Store
LeetCode(数据库)- The Category of Each Member in the Store
111 0
下一篇
无影云桌面