[英]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.