2
select distinct
l.username,
p.payid,
p.paymentdate,
sum(p.paymentamount) as payment,
b.balance as balance
from
tblUserLoginDetail l,
tblInvoicePaymentDetails p
left outer join tblPaymentCustomerBalance b
on p.accountnumber=10009
and p.payid=b.payid
and p.customerid=l.loginid
group by p.payid,p.paymentdate,b.balance,l.username
誤りがある「マルチパート識別子はバインドできませんでした」:解決SQL Serverでエラー
Msg 4104, Level 16, State 1, Line 1
The multi-part identifier "l.loginid" could not be bound.
ソリューションとは何ですか?
3レコードがrの10009口座入金テーブルに基づいて、先生が、customerbalance表1レコードがある、私は3つのレコードを持っているとのバランスがcustomertable – hmk
に残りのレコードに0であります@ hmk:あなたが尋ねた質問には関係ありません – gbn