[Solved] CS6360.001- Quiz 5 (PL/SQL)

$25

File Name: CS6360.001-_Quiz_5_(PL/SQL).zip
File Size: 254.34 KB

SKU: [Solved] CS6360.001- Quiz 5 (PL/SQL) Category: Tag:
5/5 - (1 vote)

Database Design

  1. Write a trigger code that will be executed when a new employee is inserted into Employee table or salary of the employee is updated. It compares the employee salary with department managers salary and if it is higher than managers salary, raises an error. (Solution hint: To avoid mutating table problem, you can add Mng-Salary attribute to Department table or you can use compound triggers.)

  1. Write a stored procedure that will find all borrowers that has an overdue book for a given library branch. The procedure should insert values of book title, borrower name, borrower phone number and due date into OVERDUE table, which will be used for courtesy phone calls. The procedure should receive the Branch_id as an input parameter.

Use LIBRARY database schema given below.

Create an additional table named OVERDUE with following attributes:

Book_title, Borrower_name, Borrower_phone, Due_date.

  • Assume we add one additional attribute to BOOK_LOANS table with name Return_date. When a book is borrowed, Return_date takes initial value of NULL.

Deliverables: You can submit your solution as doc, pdf or sql file.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] CS6360.001- Quiz 5 (PL/SQL)
$25