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
↧