Algorithm/SQL Query test

[MySQL] HackerRank - Weather Observation Station 1

감자 🥔 2021. 7. 20. 02:51
반응형

문제

https://www.hackerrank.com/challenges/weather-observation-station-1/problem

 

Weather Observation Station 1 | HackerRank

Write a query to print the CITY and STATE for each attribute in the STATION table.

www.hackerrank.com

Query a list of CITY and STATE from the STATION table. The STATION table is described as follows:

Where LAT_N is the northern latitude and LONG_W is the western longitude.

 

정답

SELECT CITY, STATE 
FROM STATION

반응형