Database Final Assignment
Database Final Assignment
Relation Diagram)
graphically.
Normalization
+ It is a technique for arranging data in a database to minimize
redundant information and dependencies.
+ It breaks the large table into smaller ones. It also creates relationships
between tables using the foreign key.
+ Decrease data redundancy and dependency.
+ One value should be at only one place.
Four Forms of
Normalization
Should be in 1NF.
The primary key is the only functional dependency of all non-key attributes.
All tables are already described in 1NF. So, we will show the only relation tables.
Order Order Quantit Book Publish Feedbac Comment Ratin Book Members
Id (PK) Date y Id (FK) er k g Id Id (FK)
Id (FK) Id (PK) (FK)
100 22 Feb 14 B001 P100 F001 Satisfied 8 B001 C120
2024
101 25 Feb 15 B002 P101 F002 Neutral 5 B002 C121
2024
Receip Total Manag Membe
ts Payme er rs
Id (PK) nt Id (FK) Id (FK)
2001 20000 P100 C120
2002 40000 P101 C121
3NF( Third Normal Form)
Should be in 2NF.
Remove transitive dependencies.
All tables are already described on 1NF and 2NF. We will show only the relation
table.
+
DDL Statement
Create members tale command. Create Book Store Manager Table
command.
DDL Statement
+ Create Book table Command. Create Order Details command.
DDL Statement
+ Create Cart table command. Create Feedback table
DDL Statement
Create Invoice table Command. Create Receipts Table
DML Question
+ A list of the latest books sent by various publishers based monthly.
DML Question
+ A list of books ordered by store managers from various publishers based on a
monthly basis.
DML Question
+ Produce a record of invoices for various publishers. The invoice consists of
invoice number, invoice date, publisher’s names & addresses, and total amount to
be paid.
DML Question
A list of all customer's records who are registered members in the TU E-Bookstore. The record of
each member should show the member’s identification number, first name and last name, address,
and contact number.
DML Question
A list of purchased books that have been delivered to members. The list should show member
identification number, first name and last name, address, contact number, book serial number, book
title, quantity, date.
DML Question
List of books based on specific categories (e.g. Science Fiction, Romantic, History,
Horror, etc.). The list should show type of book category, book serial number, book
title and quantity.
DML Question
+ Produce a list of the total number of books for each category of books.
DML Question
+ A list of total books and their total price as added by members in shopping.
DML Question
+ Produce a list of books with the number of various
feedback for books based on scores (1-10 which is 0=
terrible, 10= masterpiece) rated by members.
THANK YOU