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.
Hi everyone I just have a doubt kindly clarify it will be of great help
Why dose below query gives me an error
SQL0104N An unexpected token "%" was found following "ROM STATION WHERE ID".
Expected tokens may include: "CONCAT". SQLSTATE=42601
SELECTDISTINCTCITYFROMSTATIONSWHEREID%2=0
Meanwhile if I relace ID%2=0 by MOD(ID,2)=0 it gives me correct solution
SELECTDISTINCTCITYFROMSTATIONSWHEREMOD(ID,2)=0;
Cookie support is required to access HackerRank
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 →
Hi everyone I just have a doubt kindly clarify it will be of great help Why dose below query gives me an error SQL0104N An unexpected token "%" was found following "ROM STATION WHERE ID". Expected tokens may include: "CONCAT". SQLSTATE=42601
Meanwhile if I relace ID%2=0 by MOD(ID,2)=0 it gives me correct solution