관리 메뉴

물 만날 물고기

[LeetCode/MYSQL] - 595. Big Countries 본문

DB & SQL/Leetcode

[LeetCode/MYSQL] - 595. Big Countries

Lung Fish 2023. 6. 28. 01:30

🔍 예상 검색어

더보기

# 물만날물고기

# LeetCode

# SQL

# Big Countries


 

해당 포스팅은 LeetCode의 "Big Countries" SQL 문제에 대한 풀이를 정리하였습니다.

▶ 문제

 

Big Countries - LeetCode

 

Big Countries - LeetCode

Can you solve this real interview question? Big Countries - Table: World +-------------+---------+ | Column Name | Type | +-------------+---------+ | name | varchar | | continent | varchar | | area | int | | population | int | | gdp | bigint | +-----------

leetcode.com

 

▶ 내 정답

# Write your MySQL query statement below

-- World
-- name , continent, area , population, gdp 

-- area of at least three million (i.e., 3000000 km2)
-- population of at least twenty-five million (i.e., 25000000)


SELECT name, population, area
FROM World
WHERE (area >= 3000000) OR (population >= 25000000);

▶ 다른 사람 정답

# Write your MySQL query statement below
Select name,population,area from world 
where area >= 3000000 or population >=25000000

 

▶ 총평

그냥 무난무난한 쉬운 문제임. 

 

 

▼ 참고자료

No. 내용 비고
1 EASY SOLUTION - Big Countries - LeetCode Sarah-2002
2 - -
3 - -
4 - -
5 - -

▼ 복습/히스토리

더보기
No. 복습일 비고
1    
2    
3    
4    
5    

- 작성코드

--