![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MySQL练习
O_Oreo
这个作者很懒,什么都没留下…
展开
-
mysql查询中位数(窗口函数的使用)
mysql查询中位数(leetcode569的延伸)Create table If Not Exists Employee (Id int, Company varchar(255), Salary int)Truncate table Employeeinsert into Employee (Id, Company, Salary) values ('1', 'A', '2341')insert into Employee (Id, Company, Salary) values ('2', '原创 2021-03-24 23:15:27 · 2948 阅读 · 2 评论 -
(自连接、子查询、多表联查、窗口函数) MySQL经典45题重难点复习
MySQL经典45题中难度题型复习经典45题涉及数据表如下student表:sc表:course表:teacher表:注:题目难度等级因人而异,以下关于中、难的分级也是练习时根据自己的状况划分的。以下题目多涉及子链接、自连接、多表连接等重难点,值得反复思考-- (中)1.查询" 01 "课程比" 02 "课程成绩高的学生的信息及课程分数SELECT*FROM sc a LEFT JOIN student b on a.sid=b.sidINNER JOIN sc c ON a.si原创 2021-01-26 21:54:22 · 340 阅读 · 0 评论