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.
The correct answer for this is :-
SELECT DISTINCT CITY FROM STATION WHERE MOD(ID,2)=0;
here distinct keyword is used for eliminating duplicate entries
and MOD() is a function used to check for remainder. in C we usually write it as ID%2==0.
Weather Observation Station 3
You are viewing a single comment's thread. Return to all comments →
The correct answer for this is :- SELECT DISTINCT CITY FROM STATION WHERE MOD(ID,2)=0;
here distinct keyword is used for eliminating duplicate entries and MOD() is a function used to check for remainder. in C we usually write it as ID%2==0.