Nesting queries in SQL

前端 未结 4 836
余生分开走
余生分开走 2020-12-28 20:11

The goal of my query is to return the country name and its head of state if it\'s headofstate has a name starting with A, and the capital of the country has greater than 100

4条回答
  •  长发绾君心
    2020-12-28 20:45

    Query below should help you achieve what you want.

    select scountry, headofstate from data 
    where data.scountry like 'a%'and ttlppl>=100000
    

提交回复
热议问题