Question: Design a database for Library system, the system contains many users that can borrow books, each user has his own profile that contains information about
Design a database for Library system, the system contains many users that can borrow books, each user has his own profile that contains information about him, and there are categories to classify the books to ease searching for them
Note that: the user must pay for each borrowing operation
Draw the ERDiagram or Schema diagram for the previous scenario.
Create all the required tables for the system.
Add records for each table using DML commands.
a Delete all users whom ages less than years old by calculating the age.
b And then, make sure users are older than years by checking the birthdate.
Add Boolean column to check if the user returns the book.
Update author name in book table to be always initial capital.
Modify of the tables name using DDL commands.
Modify columns name with their datatypes using DDL commands.
Create another userInfo table with some data, and then merge the data from user table by committing the following rules:
a When data matched: update the data in user table to be exact the same as userInfo table.
b When not matched: insert a new record in user table with data existed in userinfo table.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
