문제) Leetcode - SQL - Big Countries
https://leetcode.com/problems/big-countries/
Big Countries - LeetCode
Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.
leetcode.com
면적이 300000 이상, 인구수가 25000000 이상인 국가를 찾는 문제였습니다. select, from, where 문으로 쉽게 해결할 수 있는 문제였습니다.
풀이)
select w.name, w.population, w.area
from World w
where w.population >= 25000000 or w.area >= 3000000
반응형
'Develop > Database' 카테고리의 다른 글
[Leetcode] 596. Classes More Than 5 Students (MySQL) 문제 및 풀이 (0) | 2021.12.30 |
---|---|
[Leetcode] 620. Not Boring Movies (MySQL) 문제 및 풀이 (0) | 2021.12.23 |
[Leetcode] 197. Rising Temperature (MySQL) 문제 및 풀이 (0) | 2021.12.20 |
[프로그래머스] SQL 고득점 Kit - 이름에 el이 들어가는 동물 찾기 (MySQL) 문제 및 풀이 (0) | 2021.12.20 |
[프로그래머스] SQL 고득점 Kit - 입양 시각 구하기(1) (MySQL) 문제 및 풀이 (0) | 2021.12.19 |
댓글