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
|
960 Discussions
|
Please Login in order to post a comment
Select * from City ( selecting all columns here by using * from city table) Where population >100000 and countrycode = 'USA' ; ( using where clause to filter the population column to get the larger value than 100000 and we are keeping the country code as a USA as per request)
The query selects all columns using SELECT *. sikwin
Together, these conditions narrow the result set to large cities in the United States while excluding smaller towns and cities from other countries. 11x game
SELECT * FROM CITY WHERE CountryCode = 'USA' AND POPULATION > 100000;