👉https://leetcode.com/problems/big-countries/description/?envType=study-plan&id=sql-i
🤔 문제 분석
1) it has an area of at least three million (i.e., 3000000 km2), or
2) it has a population of at least twenty-five million (i.e., 25000000).
3) Write an SQL query to report the name, population, and area of the big countries.
💡 풀이
SELECT name, population, area
FROM World
WHERE area >= 3000000
OR population >= 25000000
'코딩테스트 > 리트코드 SQL' 카테고리의 다른 글
[리트코드/SQL] 6. Swap Salary (627) (0) | 2022.12.05 |
---|---|
5. Calculate Special Bonus (1873) (0) | 2022.12.01 |
4. Customers Who Never Order (183) (0) | 2022.12.01 |
3. Find Customer Referee (584) (0) | 2022.12.01 |
2. Recyclable and Low Fat Products (1757) (0) | 2022.12.01 |
댓글