Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita886cbd

Browse files
add 2072
1 parent9d171e4 commita886cbd

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

‎database/_2072.sql

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
-- Write your PostgreSQL query statement below
2+
3+
4+
with excellent_std_cntsas (select (selectcount(student_id)from NewYorkwhere score>=90)as ny,
5+
(selectcount(student_id)from Californiawhere score>=90)as ca)
6+
7+
select (case
8+
whenE.ny>E.ca then'New York University'
9+
whenE.ny<E.ca then'California University'
10+
else'No Winner'
11+
end
12+
)as winner
13+
from excellent_std_cntsas E

‎paginated_contents/database/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
| 2990|[Loan Types](https://leetcode.com/problems/loan-types/)|[Solution](https://github.com/fishercoder1534/Leetcode/blob/master/database/_2990.sql)|| Easy|
66
| 2205|[The Number of Users That Are Eligible for Discount](https://leetcode.com/problems/the-number-of-users-that-are-eligible-for-discount/)|[Solution](https://github.com/fishercoder1534/Leetcode/blob/master/database/_2205.sql)|| Easy|
77
| 2082|[The Number of Rich Customers](https://leetcode.com/problems/the-number-of-rich-customers/)|[Solution](https://github.com/fishercoder1534/Leetcode/blob/master/database/_2082.sql)|| Easy|
8+
| 2072|[The Winner University](https://leetcode.com/problems/the-winner-university/)|[Solution](https://github.com/fishercoder1534/Leetcode/blob/master/database/_2072.sql)|| Easy|
89
| 1789|[Primary Department for Each Employee](https://leetcode.com/problems/primary-department-for-each-employee/)|[Solution](https://github.com/fishercoder1534/Leetcode/blob/master/database/_1789.sql)|| Easy|
910
| 1757|[Recyclable and Low Fat Products](https://leetcode.com/problems/recyclable-and-low-fat-products/)|[Solution](https://github.com/fishercoder1534/Leetcode/blob/master/database/_1757.sql)|| Easy|
1011
| 1741|[Find Total Time Spent by Each Employee](https://leetcode.com/problems/find-total-time-spent-by-each-employee/)|[Solution](https://github.com/fishercoder1534/Leetcode/blob/master/database/_1741.sql)|| Easy|

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp