发错了!
这个才对!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 dopositor, account
where dopositor.account_number = account.account_number )
服务器: 消息 170,级别 15,状态 1,行 5
第 5 行: ',' 附近有语法错误。
这个才对!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 dopositor, account
where dopositor.account_number = account.account_number )
服务器: 消息 170,级别 15,状态 1,行 5
第 5 行: ',' 附近有语法错误。
(select branch_name, customer_name
from dopositor, account
where dopositor.account_number = account.account_number )这种写法是错误的。
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 dopositor, account
where dopositor.account_number = account.account_number )