Query a list of CITY and STATE from the STATION table.

 The STATION table is described as follows:


SOLUTION:

SELECT CITY,STATE FROM STATION;

EXPLANATION:

  • SELECT CITY, STATE:
    This tells the database to return values from two specific columns — CITY and STATE.

  • FROM STATION:
    This specifies the table you’re pulling data from, which is STATION.

Popular posts from this blog

In this problem, you will practice your knowledge on interfaces - Hacker Rank Solution.