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

QUERY REWRITE - response (2) by karthik_2244

$
0
0

Hi,
Can you try this and check if this helps.
 

select  TABLE1.*

from    work_db.TABLE11 XLA

 

left join work_db.TABLE2 A

on TABLE1.COLUMN1 = A.COLUMN1

and   TABLE1.COLUMN2 = A.COLUMN2 

 

left join work_db.TABLE2 B

on TABLE1.COLUMN3 = B.COLUMN3

 

where A.COLUMN1 is not null or B.COLUMN3 is not null 

 

 

Thanks.


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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