首页 > 数据库技术 > 详细

HackerRank【SQL2】

时间:2019-07-19 18:59:59      阅读:87      评论:0      收藏:0      [点我收藏+]

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;

 

HackerRank【SQL2】

原文:https://www.cnblogs.com/wzs-python/p/11214943.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!