Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

SQL Error in FROM clause: SQL Editor: Encountered B. Was expecting: "of"...... - response (1) by dnoeth

$
0
0

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
 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>