Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Why subqueries in case are not working in teradata? - response (5) by AshishPatil

$
0
0

Hi Dieter,
I am also facing the same issue, for converting one oracle query to Teradata.
Oracle Query:
case when W_PARTY_PER_D.X_DISTRICT in (select upper(WC_ORG_EXT_XM_F.attrib_04) from wc_org_ext_xm_f where pf_org_wid = a.PR_VIS_ORG_WID)  then 0 else 1 end 
Here "a" is representing entire subquery alias which is treated as table here to join with other tables.
Please help to replicate same in Teradata.
 
Regards,
Ashish


Viewing all articles
Browse latest Browse all 27759

Trending Articles



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