HackerRankSQL2

Posted wzs-python

tags:

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

The STATION table is described as follows:

技术图片

1、Weather Observation Station 1

Query a list of CITY and STATE from the STATION table.

select CITY,STATE from STATION;

2、Weather Observation Station 3

Query a list of CITY names from STATION with even ID numbers only. You may print the results in any order, but must exclude duplicates from your answer.

select distinct CITY from STATION where mod(ID,2) = 0;

 

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