[英]SQL SELECT Cities
有几种方法,这种方法适用于第一种情况:
select *
from Country co
where 400 < all (
select ci.Population
from City ci
where ci.CountryID = co.CountryID
)
对于第二种情况:
select *
from Country co
where 0 = (
select COUNT(1)
from City ci
JOIN Building B ON B.CityID = CI.CityID
where ci.CountryID = co.CountryID
)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.