Skip to content

Commit cd4e5ea

Browse files
committed
Upload 119
1 parent b70f581 commit cd4e5ea

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ To make the daily tasks of creating a new file and updating the index easier, th
148148
| 117 | [Number of Unique Subjects Taught by Each Teacher](https://leetcode.com/problems/number-of-unique-subjects-taught-by-each-teacher/description/) | [Solution](solutions/117_number_of_unique_subjects_taught_by_each_teacher.md) | LeetCode | Easy | |
149149
| 118 | [User Activity for the Past 30 Days I](https://leetcode.com/problems/user-activity-for-the-past-30-days-i/description/) | [Solution](solutions/118_user_activity_for_the_past_30_days_i.md) | LeetCode | Easy | `BETWEEN`, `DATE` w/ `INTERVAL` |
150150
| 119 | [Product Sales Analysis III](https://leetcode.com/problems/product-sales-analysis-iii/description/) | [Solution](solutions/119_product_sales_analysis_iii.md) | LeetCode | Medium | |
151+
| 120 | [Classes More Than 5 Students](https://leetcode.com/problems/classes-more-than-5-students/description/) | [Solution](solutions/120_classes_more_than_5_students.md) | LeetCode | Easy | |
151152

152153
## Author(s)
153154

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# SQL Everyday \#120
2+
3+
## Classes More Than 5 Students
4+
5+
Site: LeetCode\
6+
Difficulty per Site: Easy
7+
8+
## Problem
9+
10+
Write a solution to find all the classes that have *at least five students*.
11+
12+
Return the result table in *any order*. [[Full Description](https://leetcode.com/problems/classes-more-than-5-students/description/)]
13+
14+
## Submitted Solution
15+
16+
```sql
17+
-- Submitted Solution
18+
SELECT
19+
class
20+
FROM Courses
21+
GROUP BY class
22+
HAVING COUNT(*) >= 5
23+
;
24+
```
25+
26+
## Site Solution
27+
28+
```sql
29+
-- LeetCode Solution
30+
-- Site solution essentially the same.
31+
```
32+
33+
## Notes
34+
35+
TODO
36+
37+
Go to [Table of Contents](/README.md#contents)\
38+
Go to [Overview](/README.md)

0 commit comments

Comments
 (0)