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.

Find the difference between the total number of CITY entries in the table and the number of distinct CITY entries in the table.

Query the Name of any student in STUDENTS who scored higher than 75 Marks - Hacker Rank Solution.