ntl_prd_secvm.CUST_ACCT_LINE_V CALT
left outer join ntl_prd_secvm.POS_TRANS_V POS
on esf.sor_id=pos.sor_id
and esf.cust_id=pos.cust_id
and esf.cust_line_seq_id= pos.cust_line_seq_id
and esf.invc_num=pos.invc_num
The Joining order is wrong I think. Here CALT and POS joining conditions need to be specified instead of ESF and POS.
Regards,
↧