Anzeige
Please I need a solution for this question- Write SQL commands to inse.docx
Please I need a solution for this question- Write SQL commands to inse.docx
Please I need a solution for this question- Write SQL commands to inse.docx
Nächste SlideShare
Oracle OCP 1Z0-007题库Oracle OCP 1Z0-007题库
Wird geladen in ... 3
1 von 3
Anzeige

Más contenido relacionado

Más de rtodd19(20)

Anzeige

Please I need a solution for this question- Write SQL commands to inse.docx

  1. Please I need a solution for this question: Write SQL commands to insert the following data into the tables. The commands should contain four INSERT statements and they are in correct order so that the referential integrity constraint is not violated. EMPLOYEE table EMP_ID EMP_NAME DEPT_ID JOB_TYPE 7839 King 10 SALARIED 7566 Jones 20 CONSULTANT DEPARTMENT table DEPT_ID DEPT_NAME DEPT_LOC 10 Accounting LINCOLN, NE
  2. 20 Research FARGO, ND EMP_ID EMP_NAME DEPT_ID JOB_TYPE 7839 King 10 SALARIED 7566 Jones 20 CONSULTANT Solution The four insert statements with the correct order is given below, that will insert data in to the given two tables. INSERT INTO EMPLOYEE (EMP_ID, EMP_NAME, DEPT_ID, JOB_TYPE) VALUES ('7839', 'King', '10', 'SALARIED'); INSERT INTO DEPARTMENT (DEPT_ID, DEPT_NAME, DEPT_LOC) VALUES ('10', 'Accounting', 'LINCOLN, NE'); INSERT INTO EMPLOYEE (EMP_ID, EMP_NAME, DEPT_ID, JOB_TYPE) VALUES ('7566', 'Jones', '20', 'CONSULTANT'); INSERT INTO DEPARTMENT (DEPT_ID, DEPT_NAME, DEPT_LOC) VALUES ('20', 'Research', 'FARGO, ND');
Anzeige