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 II
Revising the Select Query II
Sort by
recency
|
578 Discussions
|
Please Login in order to post a comment
select * from city where counterycode = 'usa' and population >120000;
Hello,
Here is my code. Hope this helps someone!
SELECT NAME FROM CITY WHERE COUNTRYCODE='USA' AND POPULATION>120000;
-FIRST WE WILL SELECT THE NAME COLUMN -FROM CITY TABLE -NOW WE HAVE GIVEN 2 CONDITIONS WHERE WE HAVE TO SELECT CITIES SPECIFICALLY WHOSE COUNTRY CODE IS USA AND WHERE POPULATION IS GREATER THEN 120000
SELECT NAME FROM CITY WHERE COUNTRYCODE='USA' AND POPULATION>120000;