DAS Assignment Question
DAS Assignment Question
DAS Assignment Question
Case Study:
APU’s E-Bookstore
The availability of books and reading material for purchase within the Asia Pacific University
(APU) is quite inadequate. Although the APU library has vast collection of books (both
hardcopy and e-books), the availability of it is quite limited and bound by many restrictions.
Student and staffs only have the option of a small bookshop within the enterprise. Larger books
store in the city are often sought for other varieties.
In view of the growing population within APU, the university is planning to establish an e-
bookstore. The online store will facilitate the purchase of latest books of many genres. Your
team is assigned the project to design and implement a database system for online APU’s e-
Bookstore System.
Scenario:
Publishers frequently send lists of latest books to the e-bookstore manager. The bookstore
manager compiles a list of needed books and sends an order to the publishers. The publisher
supplies the ordered books to the university. The bookstore manager records the details of the
order and books that have arrived at the bookstore. The orders sent to publishers need to be
recorded in the database
Customers, who wish to purchase books online, need to initially register as members.
Members will be able to view the book, read reviews and compare the online products with
other similar ones.
Members who wish to purchase can select their books into the website’s shopping cart. The
cart will show the summary of the selection and total cost to be paid. Once the payment is
made, the order is confirmed, the bookstore will send the books to the customers within 7
working days.
The system should manage information about books in the bookstore, members and books
they have ordered as well as payment details and delivery status.
Members can also provide 'rating' for a book, as a score (1-10 which is 0= terrible, 10=
masterpiece) along with optional short text comment. No changes are allowed; only one
feedback per user per book is allowed.
*Note: you may make any other assumptions after discussing them with module lecturer
Coursework Details:
1. In this assignment, you are required to design, implement, and document a database system
for an electronic bookstore named as APU E-Bookstore.
2. Create the following queries using Data Manipulation Language (DML) – student must be
able to explain the queries.
i. List the book(s) which has the highest rating. Show book id, book name, and the rating.
ii. Find the total number of feedback per member. Show member id, member name, and
total number of feedback per member.
iii. Find the total number of book published by each publisher. Show publisher id,
publisher name, and number of book published.
iv. Find the total number of books ordered by store manager from each publisher.
v. From the book table, list the books where quantity is more than the average quantity of
all books.
viii. Show the total members based on gender who are registered as members in APU E-
Bookstore.
ix. A list of purchased books that have not been delivered to members. The list should
show member identification number, address, contact number, book serial number,
book title, quantity, date and status of delivery.
Part Component
1 a) Database and Database Management System
Discuss the disadvantages of file-based system, relate your
discussion to the case study
Discuss the advantages of Database and DBMS, functions of
DBMS, relate your discussion to the case study
1 b) Business Rules & Normalization
Provide a list of business rules
Provide an example of UNF according to case study, then perform
normalization up to 3NF clearly showing all the steps with
explanation
1 c) Entity Relationship Diagram
Design the database using chen’s or crow’s foot notation, draw the
ERD with any suitable tools such as Visio. All entities, attributes,
relationship and constraints should be shown.
2 d) Database Schema
Re-submit the Entity Relationship Diagram, you may make changes
to the ERD submitted in Part 1
Generate the database diagram from the DBMS
2 e) SQL-Data Definition Language (DDL)
Create all tables with suitable data types
Insert 5-10 rows of data into each table
Screen shot all tables with its data
Screen shot all query statements
2 f) SQL-Data Manipulation Language (DML)
Write SQL statements to answer question (2) above
Screen shot all query statements together with its executed result
General Requirements: