Assignment - 02
Assignment - 02 -- Create Project table CREATE TABLE Project ( pno NUMBER PRIMARY KEY , pname VARCHAR2 ( 50 ) NOT NULL , manager_no NUMBER , CONSTRAINT FK_Manager FOREIGN KEY ( manager_no ) REFERENCES Manager_details ( manager_no ) ) ; -- Create Manager_details table CREATE TABLE Manager_details ( manager_no NUMBER PRIMARY KEY , manager_name VARCHAR2 ( 50 ) ) ; INSERT INTO Manager_details ( manager_no , manager_name ) VALUES ( 101 , 'John Manager' ) ; INSERT INTO Manager_details ( manager_no , manager_name ) VALUES ( 102 , 'Jane Manager' ) ; -- Ensure that the manager_no in Project references existing manager_no in Manager_details INSERT INTO Project ( pno , pname , manager_no ) VALUES ( 1 , 'Project A' , 101 ) ; INSERT INTO Project ( pno , pname , manager_no ) VALUES ( 2 , 'Project B' , 102 ) ; -- Try to insert a record with a non-ex...