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

Concatenate o/p of two select statements - response (13) by Mathuram

$
0
0
Hi teradatauser2,     SEL Col1, Col2, Col3, MaxCol FROM table1, (SEL MAX(eff_date) MaxCol FROM table2)t   In the above query t is the derived table, so table1, t will do Cartesian Product Join, that is all rows of one table are joined to all rows of another table.   MaxCol is the derived column in the derived table joined with all the rows of table1, so that i called MaxCol column in the upper SELECT.       Correct your query like below,   SEL Tran_Amt, Principal_Amt, Interest_Amt , maxcol FROM tduser.checking_tran, (SEL max(tran_id) maxcol FROM financial.savings_tran)dt

Viewing all articles
Browse latest Browse all 27759

Trending Articles



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