Revising the Select Query II

Sort by

recency

|

635 Discussions

|

  • + 0 comments

    MYSQL : SELECT name FROM city WHERE countrycode = "USA" AND population > 120000; ORACLE : SELECT name FROM city, WHERE countrycode = 'USA' AND population > 120000;

  • + 0 comments

    select name from city where countrycode='USA' and population >120000;

  • + 0 comments

    For MySQL

    SELECT name FROM city
    WHERE countrycode = "USA" AND population > 120000;
    
  • [deleted]
    + 0 comments

    For MySQL

    SELECT name FROM city
    WHERE population > 120000 AND countrycode = "USA";
    
  • + 0 comments

    Basically in this question we need to find out all the names from the CITY table which are having population > 120000 and countrycode = 'USA' , so here is solution for this query :

    SELECT NAME FROM CITY WHERE POPULATION > 120000 AND COUNTRYCODE = 'USA' ;