Weather Observation Station 3

Sort by

recency

|

1981 Discussions

|

  • + 0 comments

    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.

    SELECT DISTINCT CITY FROM STATION WHERE ID % 2 = 0;

    It's wrong, please help me! Many thanks.

  • + 0 comments

    SELECT DISTINCT city FROM station WHERE MOD(id, 2) = 0;

  • + 1 comment

    SELECT DISTINCT CITY FROM STATION WHERE ID %2 =0 ;

  • + 0 comments

    select distinct city from station where RIGHT(DIGITS(id), 1) in ('0', '2', '4', '6', '8');

  • + 1 comment

    SELECT DISTINCT CITY FROM STATION WHERE MOD(ID, 2) = 0;