Question: 1 - Create the following tables and insert your own values: ( 1 0 Marks ) - Employee ( emp _ ID , Name, Birth

1- Create the following tables and insert your own values: (10
Marks)
-Employee (emp_ID, Name, Birth_Date, Title, Salary, Department_No)
Project (Project_No, Project_Name, Budget, Department_No)
Department (Department_No, d Department_name)
-Working_Project (emp_ID, Project_No, hours)
Finished_Project(emp_ID, Project_No, Finished_hours, comments)
2- Write queries using database triggers for the following (20 Marks each)
a. Write Database Triggers if a success value insert message shows " Record Insert :
i. Write query to insert values in Employee table.
ii. Write query to insert values in Department table.
b. Create a trigger if the budget more than 50,000 a message appears (The Budget is over ).
c. Write Databse Triggers for any delete value message shows " Delete Done".
i. Write query to delete a value from Working Project Table
ii. Write query to delete a value from Project Table.
d. Write Database Triggers for all Working_Project.hours are more than 24 hours, message shows " Project Exceed KPI "
i. Write a query to insert in Working_Project table values that hours 24.
ii. Write a query to insert in Working_Project table values that hours >24.
 1- Create the following tables and insert your own values: (10

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!