Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Department(department_id,name) Q1:write an sql to create a staff table having(staff_id,department_id,first_name,last_name,salary)using the integrity enhancement features of SQL with the following constraints: salary must be between$1000 and

Department(department_id,name)

Q1:write an sql to create a staff table having(staff_id,department_id,first_name,last_name,salary)using the integrity enhancement features of SQL with the following constraints:

salary must be between$1000 and $5000

staff must work in an existing department

no two employees wit the same last name may work for the company

Q2 If a department is removed from the department table, what type of integrity constraint could be violated

Q3 what if we delete a department from department table, how would the staff table contents be affected. What is the side effect as a whole database?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

If ( A^2 - A + I = 0 ), then inverse of matrix ( A ) is?

Answered: 1 week ago