강의

멘토링

커뮤니티

Inflearn Community Q&A

jsme8e's profile image
jsme8e

asked

From Introduction to Utilization of MSSQL Server 2016-based Database Part 2

How to use subqueries in SELECT clauses - Practice

이렇게 하면 안되나요?

Written on

·

228

0

SELECT DIRECTOR, TITLE, MARK1, MARK2, AVG(MARK1) '감독별 관객평점 평균' FROM DBO.TBL_MOVIE M1 WHERE RELEASE BETWEEN 2010 AND 2019 GROUP BY DIRECTOR HAVING MARK2 > (SELECT AVG(MARK1) FROM DBO.TBL_MOVIE M2 WHERE M2.DIRECTOR = M1.DIRECTOR);
 
이러면 왜 안되는 걸까요...
DBMS/RDBMSsqlMSSQL

Answer

This question is waiting for answers
Be the first to answer!
jsme8e's profile image
jsme8e

asked

Ask a question