how to merge two tables to get the last new rows from table 2 and the rest from table 1
问题 i have a problem with joins on two tables into an oracle database, and i can't do that it works. if you see on the image you can two options. i execute this query: SELECT f.id_hist, f.producto, f.price FROM TABLE(fnc_historical('JAP')) f inner join new_table g on (f.id_new <> g.id_hist) union SELECT f.id_hist, f.producto, g.new_price FROM TABLE(fnc_historical('JAP')) f inner join new_table g on (f.id_new = g.id_hist) for option/case 1 it works ! but for option/case 2 this query return empty,