HackerRank/SQL

[hackerrank] Revising the Select Query I

예쁜꽃이피었으면 2022. 8. 8. 14:36

Prepare > SQL > Basic Select > Revising the Select Query I

 

 

[문제]

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

The CITY table is described as follows:

[MYSQL]

select *
from city
where countrycode = 'USA' 
and population > 100000 ;

 

[ORACLE]

select *
from city
where countrycode = 'USA'
and population > 100000;

 

 

 

반응형

'HackerRank > SQL' 카테고리의 다른 글

[hackerrank] Japanese Cities' Names  (0) 2022.08.08
[hackerrank] Japanese Cities' Attributes  (0) 2022.08.08
[hackerrank] Select By ID  (0) 2022.08.08
[hackerrank] Select All  (0) 2022.08.08
[hackerrank] Revising the Select Query II  (0) 2022.08.08