I need to implement the table below with sql (oracle):
First i created the types:
CREATE TYPE address AS OBJECT(num INT, street VARCHAR(20), city VARCHAR(20), zip INT);
CREATE TYPE phoneNum AS VARRAY(2) OF VARCHAR(13);
CREATE TYPE kids AS OBJECT(firstK VARCHAR(20), lastK VARCHAR(20), age INT);
Then i created the table "person":
CREATE TABLE person (id VARCHAR(10), firstName VARCHAR(20), lastName VARCHAR(20), adr address,pn phoneNum, ks kids);
I use this to insert into the table:
INSERT INTO person VALUES("1", "Justin", "Trudeau", address(10, "Main street", "Ottawa", 1000), phoneNum("+123456789012","+103647901456"), kids("Michelangelo", "Trudeau", 14));
Which works fine. But how do i insert the second row of "kids" (Leanardo, Trudeau, 10).