You are on page 1of 1

Take_home_assignment2

Conversion of E-R schema to relational schema

1. Construct the E-R diagram by following the steps in designing the E-R
diagram for the online retail application which has customers who will
register to purchase an item. The customer will provide bank account
number and bank name (can have multiple account number). After
registration each customer will have a unique customerid, userid and
password. Customer can purchase one or more item in different
quantities. The items can of different classes based upon their prices
based on the quantity, price of the item and discount (if any) on the
purchased items, the bill will be generated. A bank account is required to
settle the bill. The items can be ordered to one or more suppliers.
Convert the modelled E-R diagram to relational schema as well.

2. Construct the E-R diagram by following the steps in designing the E-R
diagram for a college database which needs to model the following:
A college contains many departments. Each department can offer any
number of courses. Many instructors can work in a department where an
instructor can work only in one department. For each department there is
a head and an instructor can be head of only one department. Each
instructor can take any number of courses but a course can be taken by
only one instructor. A student can enrol for any number of courses and
each course can have any number of students.
Convert the modelled E-R diagram to relational schema as well.

3. 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.

You might also like