Well, there's no alias after the Derived Table, no ON and no JOIN to B:
FROM
PP_DISCOVERY_VIEWS.fact_payment AS A
JOIN
(
SELECT * FROM PP_DISCOVERY_VIEWS.fact_payment
WHERE A.ach_cntry_code = 'US'
AND A.pmt_txn_status_code IN ('S','V')
AND A.is_pmt_official_y_n = 'Y'
) AS xxx
ON xxx.col = A.col
JOIN PP_ACCESS_VIEWS.dw_bank_account AS B
ON A.sndr_id = B.b_a_customer_id
JOIN PP_DISCOVERY_VIEWS.dim_customer AS C
ON B.b_a_customer_id = C.cust_id
Dieter
Well, there's no alias after the Derived Table, no ON and no JOIN to B:
Dieter