0% found this document useful (0 votes)
211 views

Group Assignment - DDW

The document provides guidelines for a group assignment on database design. It includes four questions to answer by: 1) Drawing an ERD and implementing a database in MySQL for Custom Closet Contractors. 2) Drawing an ERD and implementing a database in MySQL for Foxcore Retail. 3) Drawing an ERD and implementing a database in MySQL for Mustang Music. 4) Drawing an ERD and writing SQL queries for a sample database that is loaded from the provided SQL file. The queries include obtaining entity counts, employee details, order details, customer countries, customers without orders, employees reporting structure, total payments, product stock by line, and employee details by office location.

Uploaded by

Richi Sahoo
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
211 views

Group Assignment - DDW

The document provides guidelines for a group assignment on database design. It includes four questions to answer by: 1) Drawing an ERD and implementing a database in MySQL for Custom Closet Contractors. 2) Drawing an ERD and implementing a database in MySQL for Foxcore Retail. 3) Drawing an ERD and implementing a database in MySQL for Mustang Music. 4) Drawing an ERD and writing SQL queries for a sample database that is loaded from the provided SQL file. The queries include obtaining entity counts, employee details, order details, customer countries, customers without orders, employees reporting structure, total payments, product stock by line, and employee details by office location.

Uploaded by

Richi Sahoo
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Group Assignment – DDW

Guidelines

• Each group will submit one document, uploaded using the relevant link on Moodle
• Each answer for questions 1-4 will have two parts – an ERD and an SQL file
containing queries
• The deadline for submission is 10:00 AM on 21st November 2021. Any submission
made after this deadline will not be awarded any marks for this component

1. Read the case on ‘Custom Closet Contractors: Making the Database Cut’. Based on
your reading of the case,
a. Draw an E-R diagram to represent all the relevant entities, all the attributes for
each entity, and the relationships between entities
b. Implement the database for C3 using MySQL, based on the ERD created by
you. Please also input some relevant data.

2. Read the cases ‘Foxcore Retail (A): Designing a database’ and ‘Foxcore Retail (B):
Database implementation’, and answer the following questions:
a. Draw an E-R diagram to represent all the relevant entities, all the attributes for
each entity, and the relationships between entities
b. Implement the database for Foxcore Retail using MySQL, based on the ERD
created by you. Please also input some relevant data.

3. Read the cases ‘Mustang Music (A)’ and ‘Mustang Music (B)’, and answer the
following questions:
a. Draw an E-R diagram to represent all the relevant entities, all the attributes for
each entity, and the relationships between entities
b. Implement the database for Mustang Music using MySQL, based on the ERD
created by you. Please also input some relevant data.
4. Please load and run the given SQL file (‘mysqlsampledatabase.sql’) in MySQL. It
will then create a set of tables – Customers, Employees, Offices, Order Details,
Orders, Payments, Product Lines, and Products. Based on this, please answer the
following questions:
a. Draw an E-R diagram based on your understanding of the conceptual data
model that underlies the ‘mysqlsampledatabase’
b. Write SQL queries for the following scenarios:
i. What are the total number of instances of each entity present in the
database?
ii. What are the details of all the employees who are sales
representatives?
iii. When was the first order placed and by whom?
iv. When was the last order placed and by whom?
v. What are all the countries where our customers are present?
vi. Which are the customers who do not have any orders?
vii. Who are the employees who report directly to Mary Patterson and
Gerard Bondur?
viii. What is the total amounts of payments made by all the customers?
ix. What is the total quantity of stock of products related to each product
line?
x. What are the details of the employees working in the New York and
Tokyo offices

You might also like