Can anyone please help. I am doing a project for college and Im currently stuck on an issue. I can create tables etc. with their primary keys, but as soon as I add a foreign key and try to insert some values into A table, I get the ora-00924 error "table or view does not exist". I have double checked my spelling etc. but still no luck. Can anyone see where I am going wrong please. I need this issue resolved before I can continue with the next phase of the project and my time is running out fast. Here is a small sample of my database so far.I get the error messages when I create the views as well as when I add my foreign keys.DROP TABLE PATIENT;DROP TABLE PLAYER;DROP TABLE WARD CASCADE CONSTRAINTS;--CREATE TABLESCREATE TABLE WARD( WARDNO INTEGER NOT NULL, WARDNAME VARCHAR2(20) NOT NULL, PATIENTID VARCHAR2(20) NOT NULL, PLAYERID VARCHAR2(20) NOT NULL, NPCNAME VARCHAR2(20) NOT NULL, NUMPATIENTSINWARD INTEGER NOT NULL CONSTRAINT NUMPATIENTSINWARD_CHECK CHECK(NUMPATIENTSINWARD >= 0 AND NUMPATIENTSINWARD <= 10), CONSTRAINT WARD_PK PRIMARY KEY(WARDNO));CREATE TABLE PLAYER( PLAYERID VARCHAR2(20) NOT NULL, PLAYERLEVEL INTEGER NOT NULL CONSTRAINT PLAYERLEVEL_CHECK CHECK(PLAYERLEVEL >= 0 AND PLAYERLEVEL <= 99), USERNAME VARCHAR2(20) NOT NULL, PASSWORD VARCHAR2(20) NOT NULL, POINTS INTEGER NOT NULL, PLAYER_WARDNO INTEGER NOT NULL, PLAYER_PATIENTID VARCHAR2(20) NOT NULL,CONSTRAINT PLAYER_PK PRIMARY KEY(PLAYERID),CONSTRAINT PLAYER_WARDNO_FK FOREIGN KEY(PLAYER_WARDNO) REFERENCES WARD(WARDNO),CONSTRAINT PLAYER_PATIENTID_FK FOREIGN KEY(PLAYER_PATIENTID) REFERENCES PATIENT(PATIENTID)); CREATE TABLE PATIENT( PATIENTID VARCHAR2(20) NOT NULL, PATIENTNAME VARCHAR2(20) NOT NULL, PATIENTSTATE VARCHAR2(20) NOT NULL, PATIENTDESCRIPTOR CHAR NOT NULL, PATIENT_PLAYERID VARCHAR2(20) NOT NULL, PATIENT_WARDNO INTEGER NOT NULL,CONSTRAINT PATIENT_PK PRIMARY KEY(PATIENTID),CONSTRAINT PATIENT_PLAYERID_FK FOREIGN KEY(PATIENT_PLAYERID) REFERENCES PLAYER(PLAYERID),CONSTRAINT PATIENT_WARDNO_FK FOREIGN KEY(PATIENT_WARDNO) REFERENCES WARD(WARDNO));INSERT INTO WARD VALUES(1, 'WARD A', 'PATIENTID HANS', 'PLAYERID DAN', 'NPCNAME HUGO', NUMPATIENTSINWARD_CQENCE.NEXTVAL);INSERT INTO PLAYER VALUES ('PLAYERID DAN', 1, 'USERNAME GRAHAM', 'PASSWORD GRAHAM', 1, 1, 'PATIENTID HANS');INSERT INTO PATIENT VALUES('PATIENTID HANS', 'PATIENTNAME JAMES', 'SICK', 'R', 'PLAYERID DAN', 1);CREATE VIEW VIEW_PLAYERAS SELECT PLAYERID, PLAYERLEVEL, POINTS, WARDNOFROM PLAYER;