Leetcode 595. Big Countries

Posted zywscq

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Leetcode 595. Big Countries相关的知识,希望对你有一定的参考价值。

两种写法:

1.

# Write your mysql query statement below
SELECT name,population,area 
FROM world
WHERE area>3000000 OR population >25000000;

2.

# Write your MySQL query statement below
SELECT name,population,area 
FROM world
WHERE area>3000000
UNION
SELECT name,population,area 
FROM world
WHERE population > 25000000;

 

以上是关于Leetcode 595. Big Countries的主要内容,如果未能解决你的问题,请参考以下文章

595. Big Countries --- SQL related from leetcode

595. Big Countries (Easy)

力扣595(MySQL)-大的国家(简单)

595. Big Countries - Easy

595. Big Countries

Leetcode SQL题