数据库
首页 > 数据库> > SQL 595 Big Countries

SQL 595 Big Countries

作者:互联网

Table: World

+-------------+---------+
| Column Name | Type    |
+-------------+---------+
| name        | varchar |
| continent   | varchar |
| area        | int     |
| population  | int     |
| gdp         | int     |
+-------------+---------+

name is the primary key column for this table.
Each row of this table gives information about the name of a country, the continent to which it belongs, its area, the population, and its GDP value.

A country is big if:

Write an SQL query to report the name, population, and area of the big countries.

Return the result table in any order.

The query result format is in the following example.

Solution

点击查看代码
# Write your MySQL query statement below
SELECT 
    name, population, area
FROM
    World
WHERE
    area>=3000000 OR population>=25000000
;

标签:595,name,area,int,Big,Countries,table,query,population
来源: https://www.cnblogs.com/xinyu04/p/16683385.html