인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

ryanyooseungkim4361's profile image
ryanyooseungkim4361

asked

[A hundred words are not as good as seeing once] Intermediate SQL problem solving for data analysis

Solving problem 4

count(distinct submission_id) > 1

Written on

·

166

0

안녕하세요,

문제 4번 쿼리 중 count(distinct submission_id) > 1 이 왜 "hackers who achieved full scores for
more than one challenge" 를 뜻하는지 이해가 되지 않습니다!
 
submission_id는 제출한 모든 챌린지에 부여되는 번호 아닌가요? full score를 받지 않더라도 제출하면 받는 번호 아닌지요?
 
count(submission_id) > 1 이 왜 full_score를 1회 초과하여 받았다는 뜻인지 모르겠습니다.

감사합니다.
sql

Answer 1

2

bomin님의 프로필 이미지
bomin
Instructor

안녕하세요 YOOSEUNG KIM님,
열정적으로 강의를 들어주고 계시군요!

fullscore와 관련된 조건은 HAVING 구문이 아닌 WHERE 구문에 조건으로 적용되어있어요.
해당 강의 2분 46초부터 다시 한번 천천히 들어보시면 좋을 것 같습니다.

다시 들어보신 후에도 문의사항 있으신 경우 추가 질문 달아주시면 답변 드리겠습니다.

ryanyooseungkim4361's profile image
ryanyooseungkim4361

asked

Ask a question