Question: code. Add the Question Number before each response statement ( s ) as a ? ? * * comment text * / Lab # 2

code.
Add the Question Number before each response statement(s)
as a ??** comment text */
Lab # 2
Review of Basic SQL command
Statement purpose
To review the basic of SQL statements (create, load data, select,
delete, and update)
Activity Outcomes
Students will be able to use SQL statement to create tables, insert,
delete, update, and select statements.
Instructor Note
Implement all the questions below and submit, for each question, the
code and its execution result (as a readable screenshot) displayed by
Oracle. The contents of the screenshot MUST be in a readable font
size.
Answer the following questions.
Apply the following updates (some of the updates will violate
integrity constraints) on the table created in lab 1. Document clearly
which updates succeeded and which failed, and the kind of integrity
constraint violation that caused it to fail:
Insert a record ('Services',1,'123456789','11-AUG-2012') into
DEPARTMENT.
Insert a record ('Purchasing',3,'990110110','02-FEB-2013') into
DEPARTMENT.
Insert a record ('Customers',12,'333445555','14-JAN-2013')
into DEPARTMENT.
Update the Dnumber of the DEP_LOCATIONS record with
Dlocation='Seattle' to 9.
Update the Salary of the EMPLOYEE record with
SSN=444444444 to 55000.
Insert a record ('Jane','B', 'Smith', '666666606','01-MAR-1980',
'3556 W Second Street,Miami,FL','F',85000,'666666603',5)
into EMPLOYEE.
Update the hours of the WORKS_ON record with Pno=1 for the
employee with SSN=?'666884444-to 25.
Delete the EMPLOYEE record with Ssn='432765098'.
Delete the DEPARTMENT record with DNUMBER =9.
Delete all the dependents of employee with Ssn='666666608'
Submit your answers in Blackboard.
AA
Ims.uj.edu.sa
 code. Add the Question Number before each response statement(s) as a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!