Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

1.

Course Code: CSEG2017


2. Course : Advance Database Management Systems
3. Program : B.Tech.(CSE)
4. Marks: 10
5. Due Date: 25/02/2023
_______________________________________________________________________________

Assignment – 1

1. Suppose you are given the following requirements for a simple database for the National Hockey League
(NHL):

• NHL has many teams,


• Each team has a name, a city, a coach, a captain, and a set of players,
• Each player belongs to only one team,
• Each player has a name, a position (such as left wing or goalie), a skill level, and a set of injury
records,
• A team captain is also a player,
• A game is played between two teams (referred to as host_team and guest_team) and has a date (such
as May 11th, 1999) and a score (such as 4 to 2).

Construct a clean and concise ER diagram for the NHL. List your assumptions and clearly indicate the
cardinality mappings as well as any role indicators in your ER diagram.
(2 mark)

2. Model the following mini-world of an international wholesale supplier in ER. Identify the keys and give
the cardinalities of all relationships (e.g., 1:1, N:1, N:M) The wholesale supplier has customers that place
orders, which are placed on a particular date and have a total price, current status, and an order number
(starting from 1 for each customer). In each order, a customer can order several parts (products), each in a
different quantity and at a (possibly discounted) price. We also want to model the date on which each of
the parts has been sent. The parts are provided by suppliers. Each part may be provided by several
suppliers and customers may order the same part of different suppliers in the same order, but in this case
they may have different (retail) prices. Customers and suppliers have a name, an address, a phone
number, and a customer/supplier number and they come from a certain nation, which in turn is from a
particular region (of the world). Parts have a brand, a size, and a retail price.

(2 marks)
3. Map the following EER schema into a set of relations.

(2 marks)

4. Consider the following Extended-Entity-Relationship model describing customer orders.


Map the EER model into a relational schema, clearly indicating all primary and foreign keys (also stating
into which relations they are keys).
(2 mark)
5. Construct an E-R diagram for a car-insurance company whose customers own one or more cars each.
Each car has associated with it zero to any number of recorded accidents. Further, construct appropriate
tables for the above ER/EER Diagram
(2 marks)

You might also like