2014-09-16 7 views
1

나는 SQL에 익숙하지 않고, 연습 문제 8에 SQL ZOO에 답하려고 노력하고 있지만, 뭔가 빠져 있습니다. 저 좀 도와 주 시겠어요?by SQL 그룹 사용하기

List the continents that have a total population of at least 100 million. 

은 내가 시도하고있다 :

select continent 
from world 
group by continent 
having count(population) >= 100000000 

답변

1

귀하의 오류가 대신 SUM의 COUNT를 사용하는 것이 었습니다.

는 다음보십시오 : 당신의 도움에 대한

select continent 
from world 
group by continent 
having sum(population) >= 100000000 
+0

감사합니다! – Marco