The relational schema of the database, which is about the Library Management System, is provided below:...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The relational schema of the database, which is about the Library Management System, is provided below: BOOK BookID, Title, Author, Publisher, PublishDate, ISBN, Category, Language, TotalCopies, AvailableCopies BORROWING BorrowingID, BookID, MemberID, BorrowDate, ReturnDate, FineAmount MEMBER MemberID, Name, Address, Phone Number, Email, MembershipStatus, MembershipDate [Primary key is underlined; the foreign key is dotted underlined] Based on the relational schema, you are required to produce the following: Create a Database BookLoan or any suitable name. 1) 2) 3) 4) Create all relevant tables as required. Choose appropriate data types for each attribute. Indicate the primary key and foreign key in each table created. Produce sample records for each table that observes the Referential Integrity Constraint. The data inserted must satisfy the following constraints: There are at least FIVE books for each category (should have more than THREE categories), and each book has at least TWO copies available for loan. Each library member can borrow more than one book and is not restricted to borrowing books of a particular category or author. Make sure you create the relationships between the tables. The maximum and minimum number of records per table is based on the above mentioned constraints. Write SQL query and its result based on the records added earlier for the following tasks: (one query per question) a) Retrieve the book with the title "The Catcher in the Rye" b) Retrieve all members with a membership status of "Active" c) Retrieve all members who have borrowed at least ONE book d) Retrieve the total number of borrowed books e) Retrieve the total number of available books f) Retrieve the top 5 most borrowed books g) Retrieve all overdue books h) Retrieve the total fine amount owed by all members i) Retrieve the most popular category of books j) Delete all borrowing records that have a fine amount greater than RM10 5) Create ONE Form to handle the Borrowing-Entry. The form must be able to enter and display data. The relational schema of the database, which is about the Library Management System, is provided below: BOOK BookID, Title, Author, Publisher, PublishDate, ISBN, Category, Language, TotalCopies, AvailableCopies BORROWING BorrowingID, BookID, MemberID, BorrowDate, ReturnDate, FineAmount MEMBER MemberID, Name, Address, Phone Number, Email, MembershipStatus, MembershipDate [Primary key is underlined; the foreign key is dotted underlined] Based on the relational schema, you are required to produce the following: Create a Database BookLoan or any suitable name. 1) 2) 3) 4) Create all relevant tables as required. Choose appropriate data types for each attribute. Indicate the primary key and foreign key in each table created. Produce sample records for each table that observes the Referential Integrity Constraint. The data inserted must satisfy the following constraints: There are at least FIVE books for each category (should have more than THREE categories), and each book has at least TWO copies available for loan. Each library member can borrow more than one book and is not restricted to borrowing books of a particular category or author. Make sure you create the relationships between the tables. The maximum and minimum number of records per table is based on the above mentioned constraints. Write SQL query and its result based on the records added earlier for the following tasks: (one query per question) a) Retrieve the book with the title "The Catcher in the Rye" b) Retrieve all members with a membership status of "Active" c) Retrieve all members who have borrowed at least ONE book d) Retrieve the total number of borrowed books e) Retrieve the total number of available books f) Retrieve the top 5 most borrowed books g) Retrieve all overdue books h) Retrieve the total fine amount owed by all members i) Retrieve the most popular category of books j) Delete all borrowing records that have a fine amount greater than RM10 5) Create ONE Form to handle the Borrowing-Entry. The form must be able to enter and display data.
Expert Answer:
Related Book For
Systems Analysis and Design in a Changing World
ISBN: 978-1305117204
7th edition
Authors: John W. Satzinger, Robert B. Jackson, Stephen D. Burd
Posted Date:
Students also viewed these databases questions
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
Let r and s be solutions to the quadratic equation x 2 b x + c = 0. For n N, define d0 = 0 d1 = r s dn = b dn1 c dn2 (n 2) Prove that dn = r n s n for all n N. [4 marks] (b) Recall that a commutative...
-
In Exercises 7192, find and simplify the difference quotient f(x +h)-f(x) h -, h = 0
-
Impurities in the form of iron oxides lower the economic value and usefulness of industrial minerals, such as kaolins, to ceramic and paper-processing industries. A 24 experiment was conducted to...
-
Liam Mitchell, a manager of the Plate Division for the Harvest Manufacturing company, has the opportunity to expand the division by investing in additional machinery costing $495,000. He would...
-
Discuss some of the major developments in selling and sales management and the implications of these for the process of key account management.
-
Terry, Nick, and Frank are forming The Doctor Partnership. Terry is transferring $30,000 of personal cash and equipment worth $25,000 to the partnership. Nick owns land worth $28,000 and a small...
-
Sketch Bohr's model for Mg (Magnesium). It is listed in the periodic table as: 24 12Mg (12 is the atomic number and 24 is the mass #). How many protons, electrons and neutrons are there?
-
Ayayai Hotels Ltd. (AHL) is a small boutique hotel that provides 44 suites that can be rented by the day, week, or month. Food service is available through room service as well. In addition, there...
-
Why is consumption so much more stable over the business cycle than investment? In formulating your answer, discuss household behavior as well as business behavior.
-
Instructions Reflection Journal on Change Management Course Objectives: To critically reflect on the key concepts and principles learned in the change management course. To apply the knowledge...
-
Identify a country. Research an information on the political, economic,legal system and the scores in the Ease of Doing Business of your chosen country. Make written report of the result of your...
-
Rosewood Industries has EBIT of $450 million, interest expense of $175 million, and a corporate tax rate of 21%. What is the Rosewood's net income?
-
viterra inc enters into a long term debt of $10000000 with interest payable semi annually at 9.5% c.s.a. the principal payment is due to 8 years. it establishes a sinking fund to earn 8.75% c.s.s...
-
Authority is given to the school governing bodies of South African public schools to determine the school's Language of Learning and Teaching (LoLT). Provide a critical evaluation of this statement...
-
Absorption of Drugs The concentration of a drug in an organ at any time t (in seconds) is given by S0.3t - 18(1 - e-t/60) 18e-t/60 - 12e-(t - 20)/60 if t > 20 if 0 sts 20 C(t) where C(t) is measured...
-
Refer to the data in QS 10-1. Based on financial considerations alone, should Helix accept this order at the special price? Explain.
-
Refer to earlier chapters for the functional details of this application. Large delivery companies like UPS and FedEx use highly customized portable hardware devices to enable their drivers to track...
-
What is meant by a tooltip? How does it show up?
-
What two types of input controls are included in groups?
-
LDDS continued to publicly report increasing profits and sales in the financial statements, which allowed it to acquire more companies with no limit to the growth of its stock price. True/False
-
WorldCom overstated its sales by holding its books open at the close of a reporting period. True/False
-
WorldCom overstated its earnings by improper accounting for multiple element contracts. True/False
Study smarter with the SolutionInn App