Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Thank you very much in advance for your help!!!! Unit 4 Assignment 1 Directions

ID: 3637318 • Letter: T

Question

Thank you very much in advance for your help!!!!
Unit 4 Assignment 1
Directions
Perform the following tasks below by using the correct SQL statements. Create the statements in Oracle by using the following steps (SQL > SQL commands > Enter Command). Once your command is error-free, copy and paste your statements into this assignment document. Upload this Word document for grading.
All questions should be answered with one SQL statement.

1. Change the department number of all employees with employee 7900’s job title to employee 7900’s current department number. (use the emp table)

5. Delete the information from the spec_emp table for all employees who have the same job as Smith. (Use the emp table )

Column Name Data Type Nullable Default Primary Key
EMPNO NUMBER(4,0) No - 1
ENAME VARCHAR2(10) No - -
JOB VARCHAR2(9) Yes - -
MGR NUMBER(4,0) Yes - -
HIREDATE DATE Yes - -
SAL NUMBER(7,2) Yes - -
COMM NUMBER(7,2) Yes - -
DEPTNO NUMBER(2,0) Yes - -

Explanation / Answer

1. Change the department number of all employees with employee 7900’s job title to employee 7900’s current department number. (use the emp table)

       SQL> update emp set jobtitle = 7900; 5. Delete the information from the spec_emp table for all employees who have the same job as Smith. (Use the emp table )

       SQL>  DELETE FROM spec_emp where job = (SELECT job FROM employee WHERE ename = ‘smith’); I Hope this would helpful for you....... I Hope this would helpful for you.......
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote