Page 1 of 1

CREATE TABLE TOYCREATOR( ToyID NUMBER(10) FOREIGN KEY REFERENCES TOYS(ToyID), CreatorID NUMBER(4) FOREIGN KEY REFERENCES

Posted: Fri Jul 08, 2022 6:38 am
by answerhappygod
CREATE TABLE TOYCREATOR(
ToyID NUMBER(10) FOREIGN KEY REFERENCES TOYS(ToyID),
CreatorID NUMBER(4) FOREIGN KEY REFERENCESCREATOR(CreatorID)
);
Please will you explain how we can write the above statementsusing the CONSTRAINT statement on the foeign keys as well as whenwe use NULL and NOT NULL.