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"...... - forum topic by j1eggert

$
0
0

I am experiencing writers block.  The second join has an error with AS B after the FROM clause:
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')
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
The row with the error is highlighted in yellow.  I am not sure what I am missing in the code to correct the error. Any help will be greatly appreciated!

Forums: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles



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