sql에 무뇌한이라...
아래같이 이너쿼리에서 받은 컬럼이 두개이면 실행이 안되네요
그저 문법이 틀렸다고 나옵니다.
이게 책에 나오는건데 말입니다.
무슨 문제인가요?
sql서버2005입니다.

select distinct customer_name
from borrower, loan
where borrower.loan_number = loan.loan_number and branch_name = 'Perryridge' and
(branch_name, customer_name) in
(select branch_name, customer_name
from depositor, account
where depositor.account_number = account.account_number)

blog: http://ljh131.tistory.com
email: ljh131@gmail.com