Pavithra's Space
  • Home
  • Skills
    • SQL
    • HackerRank
      • Revising the Select Query I
      • Revising the Select Query II
      • Select All
      • Select By ID
      • Japanese Cities' Attributes
      • Japanese Cities' Names
      • Weather Observation Station 1
      • Weather Observation Station 3
      • Weather Observation Station 4
      • Weather Observation Station 5
      • Weather Observation Station 6
      • Weather Observation Station 7
      • Weather Observation Station 8
      • Weather Observation Station 9
      • Weather Observation Station 10
      • Weather Observation Station 11
      • Weather Observation Station 12
      • Higher Than 75 Marks
      • Employee Names
      • Employee Salaries
Powered by GitBook
On this page
  1. Skills
  2. HackerRank

Weather Observation Station 1

PreviousJapanese Cities' NamesNextWeather Observation Station 3

Last updated 1 year ago

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.

Sol:

SELECT CITY, STATE FROM STATION;

Explanation:

  • SELECT CITY, STATE: This part of the query indicates that we want to retrieve the values in the CITY and STATE columns of the STATION table.

  • FROM STATION: This specifies the table from which we want to retrieve the data, which is the STATION table.

Weather Observation Station 1 | HackerRankHackerRank
Logo