at first if the Activityx table is the unused table which contains the data and contain the following column
un_code,
sec_code,
act_code,
activity
which is similar to the second table which is called activity (used)
select from first table activitx and insert it into the other table activity
1- first do this select statement on the table
select 'insert into activity values ('''||un_code||''','
||''''||sec_code||''','||''''||act_code||''','||''''||activity||''');'
from activityx;
------------------------------------
the result will be as follows:
insert into activity values ('3','1','11','Demo Plots');
insert into activity values ('3','1','12','Field Day');
insert into activity values ('3','1','13','Follow Up Research');
insert into activity values ('3','1','14','Follow Up Staff');
insert into activity values ('3','1','15','Contact Farmers');
insert into activity values ('3','1','16','S.M.S');
insert into activity values ('3','1','17','Extension Meeting');
insert into activity values ('3','1','18','Cropping Pattern');
insert into activity values ('3','3','33','Informative Meeting');
insert into activity values ('3','2','21','Extension Demonestration Plot');
insert into activity values ('3','2','22','Field Day');
insert into activity values ('3','2','23','Follow Up Research');
insert into activity values ('3','2','24','Follow Up Staff');
----
2- the result of statement from the screen is the code to be used to insert to other table
simply spool the result of query to sql file