We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Weather Observation Station 3
Weather Observation Station 3
Sort by
recency
|
1981 Discussions
|
Please Login in order to post a comment
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.
SELECT DISTINCT city FROM station WHERE MOD(id, 2) = 0;
SELECT DISTINCT CITY FROM STATION WHERE ID %2 =0 ;
select distinct city from station where RIGHT(DIGITS(id), 1) in ('0', '2', '4', '6', '8');
SELECT DISTINCT CITY FROM STATION WHERE MOD(ID, 2) = 0;