SQLD · 모의고사 6회 · 28번

Q.28모의고사 6회2과목 · SQL 기본 및 활용

주문 자료에서 전체 합계, 주문 연도와 주문 월을 묶은 복합 그룹별 합계, 채널별 합계만 산출하려고 한다. 그 밖의 그룹화 조합은 생성하지 않아야 할 때 가장 적절한 것은?

  • 1GROUPING SETS ((order_year, order_month, channel), (order_year, order_month), (channel), ())
  • 2CUBE((order_year, order_month), channel)
  • 3GROUPING SETS ((), (order_year, order_month), (channel))
  • 4ROLLUP((order_year, order_month), channel)

정답: 3번 · GROUPING SETS ((), (order_year, order_month), (channel))

해설
해설 불러오는 중…
이 회차 문제 풀어보기 →SQLD 더 풀기