Sunteți pe pagina 1din 8

Create ER Diagrams for the following questions:

1. ABC Bank operates a number of branches and a customer of the bank can have any number
of accounts which may be a joint account allowing more than one customer to operate a
given account. The bank offers from types of accounts: current account, saving account,
loan account and market account. Identify the entries of interest, show their attributes and
relationship among these entities. Also, give the corresponding database design of each
relation and underline a primary key of each relation.

2. Make an ER diagram of a warehouse. The warehouse has two types of items: low risk and
high risk items. The low risk items are issued on receipt of a simple challan bit the high risk
items are issued only if the challan is verified and authenticated by proper authorities. The
issues are made only to a valid employee of the company. Make necessary assumptions.
3. Construct an ER diagram (including important attributes) for a car insurance database that
include data about customer (car owners), cars, accidents, drivers involved in accidents and
injured drivers and/or passengers. Note that any customer can insure many cars, each car may
have different drivers at different times and accidents typically involve one or more cars.
4. Design an E-R diagram for an Airline Reservation System consisting of flights, airports,
fares, reservations, tickets, crew and passengers. Clearly indicate the entities, relationships and
the key constraints.

5. Create an ER diagram for the loan management system of a finance company. Loans are
given on the purchase of various items with different interest rates. The company keeps track
of defaulters and takes appropriate steps against them. Make, and state, suitable assumptions
(if any).

SSN Int.Rate
Add.

Customer borrow Item

Item.type

Pay

Loan loan-due-amt
Installment Part of

install-amt period
install-no. loan-date
loan-no

install-pt
loan-amt.
6. A marketing based organization has many branches in different states. The organization sells
items in bulk to the dealers who sell them to retailers. The retailers ultimately sell it to the
customers. Draw an E-R diagram for this distribution channel, clearly indicating the entities,
attributes, relationships, keys and the cardinality ratio.
7. Construct ER Diagram on the basis of following characteristics:
For actors and directors, who are part of Movie Person, we want to store their name, a
unique identification number, address, birthday and age.
For actors, we want to store photograph.
For films, we want to store the title, year of production and type (thriller, comedy etc.)
We want to know who directed and who acted in each film. Every film has one director.
We want to store the salary of each actor for each film.
An actor can receive an award for this part in a film. We store information about who
got which award for which film, along with the name of award and year.
We also store the name and telephone number of the organization who gave the award.
Two different organizations can give and award with the same name. A single
organization does not give more than one award with a particular name per year.
8. Use the following business rules to write all appropriate connectivities in the ER diagram:
A department employs many employees, but each employee is employed by one
department.
Some employees are not assigned to any department.
A division operates many departments, but each department is operated by one division.
An employee may be assigned to many projects and a project may have many
employees assigned to it.
A project must have at least one employee assigned to it.
One of the employees manages each department and each department is managed by
only one employee.
One of the employees runs each division and each division is run by one employee.

9. Construct an E-R diagram for a hospital with a set of patients and a set of medical doctors.
Associate with each patient a log of the various tests and examinations conducted.
10. A university registrars office maintains data about the following entities: (a) courses,
including number, title, credits, syllabus, and prerequisites; (b) course offerings, including
course number, year, semester, section number, instructor(s), timings, and classroom; (c)
students, including student-id, name, and program; and (d) instructors, including identification
number, name, department, and title. Further, the enrollment of students in courses and grades
awarded to students in each course they are enrolled for must be appropriately modeled.
Construct an E-R diagram for the registrars office. Document all assumptions that you make
about the mapping constraints.

11. Consider a database used to record the marks that students get in different exams of
different course offerings.
a. Construct an E-R diagram that models exams as entities, and uses a ternary relationship, for
the above database.
b. Construct an alternative E-R diagram that uses only a binary relationship between students
and course-offerings. Make sure that only one relationship exists between a particular student
and course-offering pair, yet you can represent the marks that a student gets in different exams
of a course offering.

12. Consider an ONLINE-AUCTION database system in which members (buyers and sellers)
participate in the sale of items. The data requirements for this system are summarized as
follows:
The online site has members, each of whom is identified by a unique member number
and is described by an email-address, name, password, home address and phone number.
A member may be a buyer or a seller. A buyer has a shipping address recorded in the
database. A seller has a bank account number and routing number recorded in the database.
Items are placed by a seller for sale and are identified by a unique item number assigned
by the system. Items are also described by an item title, a description, starting bid price, bidding
increment, the start date of the auction and the end date of the auction.
Items are also categorized based on a fixed classification hierarchy. For example, a
modem may be classified as COMPUTER HARDWARE MODEM.
Buyers make bids for items they are interested in. Bid price and time of bid is recorded.
At the end of the auction, the bidder with the highest bid price is declared as the winner and a
transaction between buyer and seller may then proceed.
The buyer and seller may record feedback regarding their completed transactions.
Feedback contains a rating of the other party participating in the transaction (1-10) and a
comment.

S-ar putea să vă placă și