Comm 226 Assignment 2 ( got 90+) Concordia University, Exams of Communication

Comm 226 Assignment 2 ( got 90+) Concordia University

Typology: Exams

2024/2025

Available from 10/12/2024

solution-master
solution-master 🇺🇸

3.2

(27)

11K documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Comm 226 Assignment 2 ( got 90+) Concordia University
1) Draw the ERD of the database that could be used to support the operations of the business
described in the case (3 marks). The ERD should identify:
Primary keys and Foreign keys;
Entities and Attributes;
Relationships and Cardinalities (e.g. one-to-one, one-to-many).
Next to the ERD in your submission, list the assumptions made when designing the ERD. If an element of
the business case does not provide the information necessary to know for certain whether one design
choice should be made over another, the choice you make will be accepted if it correctly reflects your
assumptions.
SOLUTION TO Q1)
Assumptions:
The relationships are as follows:
1) A book can have been written by many authors and one author can have written many books:
many to many relationships.
2) A customer can buy as many books as they want.
3) Books can be published by only one publisher, but a publisher can publish many books: one to
many relationship
4) A customer can have many orders but only one order can attribute to a single customer: many
to one relationship
5) An order can have multiple books and a book can be part of multiple orders: many to many
relationship
- You cannot have many to many relationships, so transition tables were created to show many
to many relationships between “Book, Author” and “Order and Book” relationship
Assumptions of primary key:
1) Unique
2) Never changing/can’t be repeated
3) Never null
Foreign keys assumptions:
1) Doesn’t have to be unique
2) They can be repeated
3) Multiple foreign keys in one entity
Assumptions on cardinalities (based on what it takes (the minimum) to be in the system or bookstore):
Book and author:
- A book has to be written by a minimum of 1 author (one or many)
- Minimum number of books an author can write is 1 (one or many)
Customer and Books:
- A customer can buy one or more books (one or many)
Book and publisher:
- A book can be published by a minimum of 1 publisher (one or many)
pf3
pf4
pf5

Partial preview of the text

Download Comm 226 Assignment 2 ( got 90+) Concordia University and more Exams Communication in PDF only on Docsity!

Comm 226 Assignment 2 ( got 90+) Concordia University

  1. Draw the ERD of the database that could be used to support the operations of the business

described in the case (3 marks). The ERD should identify:

  • Primary keys and Foreign keys;
  • Entities and Attributes;
  • Relationships and Cardinalities (e.g. one-to-one, one-to-many).

Next to the ERD in your submission, list the assumptions made when designing the ERD. If an element of the business case does not provide the information necessary to know for certain whether one design choice should be made over another, the choice you make will be accepted if it correctly reflects your assumptions.

SOLUTION TO Q1)

Assumptions: The relationships are as follows:

  1. A book can have been written by many authors and one author can have written many books: many to many relationships.
  2. A customer can buy as many books as they want.
  3. Books can be published by only one publisher, but a publisher can publish many books: one to many relationship
  4. A customer can have many orders but only one order can attribute to a single customer: many to one relationship
  5. An order can have multiple books and a book can be part of multiple orders: many to many relationship
  • You cannot have many to many relationships, so transition tables were created to show many to many relationships between “Book, Author” and “Order and Book” relationship

Assumptions of primary key:

  1. Unique
  2. Never changing/can’t be repeated
  3. Never null

Foreign keys assumptions:

  1. Doesn’t have to be unique
  2. They can be repeated
  3. Multiple foreign keys in one entity

Assumptions on cardinalities (based on what it takes (the minimum) to be in the system or bookstore):

Book and author :

  • A book has to be written by a minimum of 1 author (one or many)
  • Minimum number of books an author can write is 1 (one or many)

Customer and Books:

  • A customer can buy one or more books (one or many)

Book and publisher :

  • A book can be published by a minimum of 1 publisher (one or many)
  • Minimum amount of books published by a publisher to be in the book store is 1 (one or many)

Customer and order :

  • A customer can exist in the system but a customer can have 0 orders (zero or many)
  • Minimum of 1 order attributed to a customer (an order can have only 1 customer and not many)
    • one (and only one)

Order and book :

  • An order has to have a minimum of 1 book (one or many)
  • A book can be a part of 1 or more orders (one or many)

3) Create the data dictionary for your database (1 mark).

To do this, you can use the template given with this assignment (datadictionaryTemplate.xls):

SOLUTION TO QUESTION 3)

4) Implement the ERD Microsoft Access 2010/2013/2016 or LibreOffice (4 marks) Using the ERD and

data dictionary that you created, complete the following steps:

A. Implement the ERD and data dictionary in Microsoft Access 2010/2013/2016 or LibreOffice. The Microsoft Access Database should have all the tables, attributes, and relationships defined in your ERD and data dictionary. You should make sure that all the primary keys and foreign keys are defined (2 marks).

B. Create 5 records in each table of your Microsoft Access Database. Make sure to create the records for the parent tables first (the ones with the one side), otherwise you might run into referential integrity issues (1 mark).

C. Create 2 queries in Microsoft Access that a manager could answer using this database. Your queries must each use of at least two tables (1 marks).

Query1: Which customers have ordered books that cost less than $100?

Query2: Which authors have books rated higher than 4?

D. Create 2 reports by using the queries designed in step 3 (1 mark).