You are viewing a single comment's thread. Return to all comments →
Correct Answer is: SELECT DISTINCT CITY FROM STATION WHERE MOD(ID,2) = 0;
Also you can use this: SELECT DISTINCT CITY FROM STATION WHERE ID%2 = 0;
But because of hackerank test cases, it's not working here.
Seems like cookies are disabled on this browser, please enable them to open this website
Weather Observation Station 3
You are viewing a single comment's thread. Return to all comments →
Correct Answer is: SELECT DISTINCT CITY FROM STATION WHERE MOD(ID,2) = 0;
Also you can use this: SELECT DISTINCT CITY FROM STATION WHERE ID%2 = 0;
But because of hackerank test cases, it's not working here.