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.
Revising the Select Query I
Revising the Select Query I
Sort by
recency
|
929 Discussions
|
Please Login in order to post a comment
SELECT * From CITY WHERE POPULATION > 100000 AND COUNTRYCODE = 'USA',
This is my answer but when I run code it's said it's wrong.
give a solution for this statement
"This problem is a good exercise for filtering data using the WHERE clause. Remember to pay attention to the instructions about avoiding the AS keyword and writing the query in a single line — small formatting details like these often cause errors even if your logic is correct."
Make sure to wrap 'USA' in single quotes — double quotes won’t work for string values in SQL. Found a quick guide that breaks this down clearly.
SELECT * FROM CITY WHERE COUNTRYCODE ='USA' AND POPULATION > 100000;