Revising the Select Query I

Sort by

recency

|

960 Discussions

|

  • + 0 comments

    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)

  • + 0 comments

    The query selects all columns using SELECT *. sikwin

  • + 0 comments

    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

  • + 0 comments
    SELECT 
        *
    FROM 
        CITY
    WHERE 
        POPULATION > 100000
        AND UPPER(COUNTRYCODE) = 'USA'
    
  • + 0 comments

    SELECT * FROM CITY WHERE CountryCode = 'USA' AND POPULATION > 100000;