I have my main table like this
create table final(
Province varchar2(50),
Country varchar2(100),
Latitude Number(10,0),
Longitude Number(10,0),
Cdate varchar2(20),
Confirmed int,
killed int,
Recover int
)
Then I have created Table with nested table like this
create type virus_Statistic_t as object(
vDate varchar2(20),
infection int,
dead int,
recovered int
)
/
create type virus_Statistic_tlb as table of virus_Statistic_t
/
create type countries_t as object(
Province_or_State varchar2(50),
Country_or_Region varchar2(100),
Lat Number(10,0),
Longt Number(10,0),
virus virus_Statistic_tlb
)
/
create table countries of countries_t (
Lat not null,
Longt not null
) nested table virus store as virus_ntb;
Now I am trying to pass all columns values from final to countries table.
This is I have tried
INSERT INTO countries(Province_or_State, Country_or_Region, Lat, Longt, vDate, infection, dead, recovered)
SELECT Province, Country, Latitude, Longitude, Cdate, Confirmed, killed, Recover
FROM final
/
It gives this error
ERROR at line 1:
ORA-00904: "RECOVERED": invalid identifier
How can I pass all values from final to countries table?