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

When a method in a subclass overrides a method in superclass, it is still possible to call the overridden method using super keyword - Hacker Rank Solution.

You are given a date. You just need to write the method getDay which returns the day on that date - Hacker Rank Solution.