【发布时间】:2011-10-12 14:00:58
【问题描述】:
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
错误是:
Msg 4104, Level 16, State 1, Line 1
The multi-part identifier "l.loginid" could not be bound.
解决办法是什么?
【问题讨论】:
标签: sql-server-2005