当前位置:网站首页>Leetcodesql: count the number of students in each major
Leetcodesql: count the number of students in each major
2022-06-12 18:59:00 【Review of the white speed Dragon King】

Ideas :
Simple left join + groupby + orderby
sql
# Write your MySQL query statement below
select dept_name, count(student_id) student_number
from Department t left join Student s
on s.dept_id = t.dept_id
group by t.dept_name
order by student_number DESC, dept_name ASC
边栏推荐
- Cookie & session & kaptcha verification code
- [blockbuster release] ant dynamic card, enabling the app home page to realize agile update
- 【5GC】三种SSC(Session and Service Continuity)模式介绍
- leetcode:5289. Distribute cookies fairly [see data range + DFS pruning]
- 攻防世界(web篇)---supersqli
- RHCA回忆录---CL280介绍
- Daily blog - micro service permission 12 matters
- kali局域网ARP欺骗(arpspoof)并监听(mitmproxy)局域内其它主机上网记录
- [image denoising] image denoising based on anisotropic filtering with matlab code
- Operational research optimization of meituan intelligent distribution system - Notes
猜你喜欢

基于FPGA的VGA协议实现

国内如何下载Vega
![leetcode:6095. Strong password verifier II [simple simulation + direct false]](/img/31/570ebaecdd4e6db4dede9a456741a5.png)
leetcode:6095. Strong password verifier II [simple simulation + direct false]

What is a network proxy
![leetcode:5259. Calculate the total tax payable [simple simulation + see which range]](/img/f4/e6329c297dbe668e70f5e37bfc2852.png)
leetcode:5259. Calculate the total tax payable [simple simulation + see which range]

RHCA回忆录---CL280介绍

Go init initialization function

【矩阵论 & 图论】期末考试复习思维导图

On how to make digital transformation after the loan of large policy banks- Yixinhuachen
![leetcode:6097. Match [set record + query one by one with the same length] after replacing characters](/img/03/d8286742bacf25b62c7dc3dcb0733e.png)
leetcode:6097. Match [set record + query one by one with the same length] after replacing characters
随机推荐
美团获得小样本学习榜单FewCLUE第一!Prompt Learning+自训练实战
In 2021, the global fire pump drive power revenue is about $381million, and it is expected to reach $489.3 million in 2028
Yoloe target detection notes
被八股文害惨了。。。
Leetcode 474. One and zero
Go init initialization function
uniapp使用阿里图标
The Bean Validation API is on the classpath but no implementation could be found
Judging the quality of American advanced anti DDoS servers depends on three points!
leetcode:6094. 公司命名【分组枚举 + 不能重复用set交集 + product笛卡儿积(repeat表示长度)】
Research Report on the overall scale, major manufacturers, major regions, products and applications of Electric Screwdrivers in the global market in 2022
基于FPGA的VGA协议实现
Leetcode topic [string]-541- reverse string II
Leetcode 416. Split equal sum subset
What is a network proxy
leetcode:98. Count the number of subarrays whose score is less than k [double pointers + number of calculated subsets + de duplication]
收获满满的下午
美团智能配送系统的运筹优化实战-笔记
What are the third-party software testing organizations in Shanghai that share knowledge about software validation testing?
即时配送的订单分配策略:从建模和优化-笔记