I'm new to oracle so don't laugh if I ask a stupid question:)
Here's my problem
Consider I have two tables
t1. in inserts
insert into `t1` (`iss_id`, `tr_type`, `perc`) values('1','26','1');
insert into `t1` (`iss_id`, `tr_type`, `perc`) values('2','26','4');
and t2 in insert
insert into `t2` (`id`, `perc`) values('1','0');
insert into `t2` (`id`, `perc`) values('2','0');
(the rows in tables are much more)
I want to update t2 so that the result was like this:
insert into `t2` (`id`, `perc`) values('1','1');
insert into `t2` (`id`, `perc`) values('2','4');
How can I write a proper update for this? I tried with decode function, but the rows in tables are more than it allows.