- Weather Observation Station 3

 Query a list of CITY names from STATION for cities that have an even ID number. Print the results in any order, but exclude duplicates from the answer.

The STATION table is described as follows:

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


select distinct city from station where mod(id,2)=0;


Expected Output
  • Aguanga 
  • Alba 
  • Albany 
  • Amo 
  • Andersonville 
  • Archie 
  • Athens 
  • Atlantic Mine 
  • Bainbridge 
  • Baker 
  • Bass Harbor 
  • Bayville 
  • Beaufort 
  • Bellevue 
  • Benedict 
  • Bennington 
  • Bentonville 
  • Biggsville 
  • Bison 
  • Bono {-truncated-}

Post a Comment

Previous Post Next Post