Professional Documents
Culture Documents
cs403 Roha
cs403 Roha
Task no 1:
Draw a Context Level Data Flow Diagram (DFD) of the given bookstore system.
ANSWER:
ANSWER:
1. Books:
ISBN (Primary Key)
Title
Publication year
Price
Quantity in stock
2. Authors:
Author ID (Primary Key)
Name
Biography
3. Genres:
Genre ID (Primary Key)
Genre Name
4. Customers:
Customer ID (Primary Key)
Name
Email
contact
Shipping
5. Orders:
Order ID (Primary Key)
Order date
Total price
6. Order Details:
Order Detail ID (Primary Key)
Order ID (Foreign Key referencing Orders)
ISBN (Foreign Key referencing Books)
Quantity
Price at the time of purchase
Relationships:
1. Books - Authors:
Many-to-Many relationship since a book can have multiple authors and an author can
write multiple books.
2. Books - Genres:
Many-to-Many relationship since a book can belong to multiple genres and a genre can
have multiple books.
3. Customers - Orders:
One-to-Many relationship since a customer can place multiple orders but each order is
associated with only one customer.
ERD Diagram: