Revising the Select Query II

Sort by

recency

|

648 Discussions

|

  • + 0 comments

    Select Name from CITY where CountryCode = 'USA' and Population > 120000

  • + 0 comments

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

  • + 0 comments

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

  • + 0 comments

    If you are using MS SQL server version, put semicolon ; at the end of the query it will resolve the issue.

  • + 0 comments

    SQL0206N "USA" is not valid in the context where it is used. SQLSTATE=42703