Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the following relations of a database designed for a Library. Member member id M-1 M-2 name Alice Bob membership_type joining_date Regular 01/Jan/19 Patron 01/Nov/18
Consider the following relations of a database designed for a Library. Member member id M-1 M-2 name Alice Bob membership_type joining_date Regular 01/Jan/19 Patron 01/Nov/18 Book book id B-1 title Database Algorithms price 1000 600 total copies 10 10 available copies 10 8 B-2 membe Borrow borrow id 1001 1002 1001 rid M-1 book id B-1 B-2 B-2 borrow scheduled r actual ret penalty date eturn date urn date 01/Nov/19 08/Nov/19 10/Nov/19 100 01/Nov/19 01/Dec/19 10/Nov/19 17/Nov/19 M-2 M-1 There exist the following business rules. Regular members can keep a book for 7 days and a member who is a patron can keep a book for 30 days. If a book has been kept after the scheduled return date, for each day 5% of the book price will be incurred as a penalty that the member must pay while returning the book. However, the amount of penalty will not exceed the original price of the book. In that case, the original price of the book will be incurred as the penalty. Write a PL/SQL procedure MEMBER_INFO that displays the member ID, name, eal member type, joining date, total number of books borrowed, total number of books returned and total amount of penalty paid
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started