Here is a solution based on a couple of assumptions:
department1
is a SQL nested table type
division1
is a table with a primary key
So we can create the table like this:
create table Department2 (
deptID number (15) primary key,
deptName char (45),
deptExt department1,
DivisionID references division1)
NESTED TABLE deptExt STORE AS deptExt_tab
;
Note that it not necessary to further define DivisionID
: it inherits its datatype from the primary key column of the referenced table. The NESTED TABLE clause is required to create a nested table column, and its absence from the question is troubling.
Having created the table like this the posted insert statement does indeed hurl ORA-00907: missing right parenthesis
. This is due to the collection of department IDs: we are instantiating a type and that means we need to reference the collection in the VALUES clause:
insert into department2
values (311, 'IT', department1(69193929489, 27222844821, 17897532567), 211);
I have posted a working demo on db<>fiddle here