I have 2 tables
create table TABLE_FILE
(
HICN VARCHAR2(12) NOT NULL,
FIELD1 NUMBER(10) NOT NULL DEFAULT 0,
FIELD2 NUMBER(10) NOT NULL DEFAULT 0,
FIELD3 NUMBER(10) NOT NULL DEFAULT 0
)
Data:
HICN FIELD1 FIELD2 FIELD3
1
2
3
4
CREATE TABLE TABLE_DATA
(
HICN VARCHAR2(12) NOT NULL,
FIELD1 NUMBER(10) NOT NULL ,
FIELD2 NUMBER(10) NOT NULL ,
FIELD3 NUMBER(10) NOT NULL ,
FIELD4 NUMBER(10) NOT NULL
)
Data:
HICN FIELD1 FIELD2 FIELD3
1 200 250 1
2 300 350 1
3 400 240 1
4 500 550 1
I need to join the two tables by the key (HICN) and update the
values from TABLE_DATA to TABLE_FILE....
Since oracle doesn't allow updates using joins,how do we do this ?
Thank you
raj