Skip to content

[서희] 유형4: FULL OUTER JOIN & 유형5: GROUP BY#8

Merged
seohee-P merged 4 commits intomainfrom
docs/7-seohee
Mar 18, 2026
Merged

[서희] 유형4: FULL OUTER JOIN & 유형5: GROUP BY#8
seohee-P merged 4 commits intomainfrom
docs/7-seohee

Conversation

@seohee-P
Copy link
Member

Check

  • 👀 파일명 형식에 맞게 작성하였는가?
  • 🙆🏻 해당 유형의 모든 문제를 풀었는가?
  • 🔖 라벨은 등록했는가? ex. sql, chapter01

Contents

@seohee-P seohee-P requested review from fanfanduck and mango606 March 14, 2026 04:29
@seohee-P seohee-P self-assigned this Mar 14, 2026
@seohee-P seohee-P added the sql SQL 실전 트레이닝 label Mar 14, 2026
Comment on lines +8 to +20
SELECT
e.name,
e.department,
e.salary,
s.avg
FROM employee AS e
LEFT OUTER JOIN (
SELECT department,
ROUND(AVG(salary), 2) AS avg
FROM employee
GROUP BY department
) AS s
ON e.department = s.department;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

서브쿼리 + LEFT JOIN으로 깔끔하게 풀었네요! 저는 책대로 윈도우 함수로 접근했는데, 이렇게 풀 수도 있다는 걸 보고 배웠습니다. 👍

@seohee-P seohee-P merged commit e13424b into main Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sql SQL 실전 트레이닝

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[26년 03월 03주차] 유형4: FULL OUTER JOIN & 유형5: GROUP BY

2 participants