首页 > 数据库技术 > 详细

HackerRank【SQL】

时间:2019-07-19 11:09:23      阅读:73      评论:0      收藏:0      [点我收藏+]

 

1、Revising the Select Query I

Query all columns for all American cities in CITY with populations larger than 100000. The CountryCode for America is USA.

SELECT * FROM CITY WHERE COUNTRYCODE = USA AND POPULATION > 100000;

2、Revising the Select Query II

Query the names of all American cities in CITY with populations larger than 120000. The CountryCode for America is USA.

SELECT NAME FROM CITY WHERE COUNTRYCODE = USA AND POPULATION > 120000;

 

HackerRank【SQL】

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

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