0% found this document useful (0 votes)
119 views6 pages

E-R Diagram Questions

1. The ER diagram models a real estate firm with sales offices, employees, properties for sale, and property owners. Sales offices are assigned employees and list properties. Properties have owners. 2. The ER diagram models a company with departments, divisions, employees, and projects. Employees are assigned to departments and projects. Divisions operate departments and employees run divisions. 3. The ER diagram models customer orders, salespeople, inventory, and items. Customers request items from salespeople who check inventory availability and place customer orders with inventory. Inventory delivers items and salespeople invoice customers. 4. The ER diagram shows relationships between employee, job, bonus, and bonus master tables. Employees have jobs and

Uploaded by

Tej Sha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
119 views6 pages

E-R Diagram Questions

1. The ER diagram models a real estate firm with sales offices, employees, properties for sale, and property owners. Sales offices are assigned employees and list properties. Properties have owners. 2. The ER diagram models a company with departments, divisions, employees, and projects. Employees are assigned to departments and projects. Divisions operate departments and employees run divisions. 3. The ER diagram models customer orders, salespeople, inventory, and items. Customers request items from salespeople who check inventory availability and place customer orders with inventory. Inventory delivers items and salespeople invoice customers. 4. The ER diagram shows relationships between employee, job, bonus, and bonus master tables. Employees have jobs and

Uploaded by

Tej Sha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 6

1.

Prepare an E-R diagram for a real estate firm that


lists property for sale. The following describes the
organization:
The firm has a number of sales offices in
several states.
Each sales office is assigned one or more
employees. An employee must be assigned to
only one sales office.
For each sales office, there is always one
employee assigned to manage that office. An
employee may manage only one sales office to
which he/she is assigned.
The firm (sales office) lists property for sale.
Each unit of property must be listed with one
(and only one) of the sales offices. A sales
office may have any number of properties
listed, or may have no properties listed.
Each unit of property has one or more
owners. An owner may have one or more
units of property.
Firm name Firm Id

Firm Employee
Id
1
Name

has Employee

Sales office Name


1

M
1 Manag
Sales Sales Office 1 e
Property 1
Id

Place
M
Property
Situate
1 d
1 Stated Id

State Name

has State
Owner Id

Name
M
Owner

2. A department employs many employees but each employee is


employed by one department. A division operates many
department but each. Department is operated by one division. An
employee may be assigned many projects and one project may
have many employees assigned to it. One of the employees. One of
the employees runs each division and each division is run by only
one employee.
Name Department
Id

Department
1 1

Emplo Operate
ys d
Employ Id

Division Id
Name

M 1
M Employee Division
1
1 1

Run
s
Hav Assigne
e d

M
1
Project

Project Id

Employee
Id

3. A customer requests an item from a salesperson. The salesperson


looks up the inventory to see if the item is available. The
salesperson replies to the customer. The customer places an order
with the salesperson. The salesperson forwards the order to the
inventory. The inventory places the item on hold and informs the
salesperson. The salesperson sends an invoice to the customer.
When payment on the invoice is received, the salesperson requests
inventory to make delivery. Inventory sends a delivery note to
customer.
Customer
Id
Name

Customer Plac Order


1 e
Invoice Id 1

Date

1
Reque Invoice Has
st M
Item Id
Send Sales person
Price Id
Name
M 1
Item Sales person
1 1

Looked
Belon
Up
g Inventory By
Id
Item Id
1
1
Inventory

4. EMP (empno, ename, job_code), EMP_BONUS (empno,


bonus_code), JOB (job_code, job_description), BONUS_MASTER
(bonus_code, bonus_description)
Based on above tables, create ER-Diagram to show the
relationships among all the tables.
Emp No

e name Job Bonus Emp no


code code

Emp 1 1 Bonus
Get
1 1

Has Belon
g
Job Bonus_descriptio
code n
Job_description Bonus_cod
e
1 1
Job Bonus_master

5. Draw a Crows Foot model ER Diagram showing all entities,


attributes and Relationships using following business rules.

I. One Colleage contains many rooms.


II. A room is used for many classes.
III. One class can have I or more divisions.
IV. A division can have many students.
V. A student can enroll for many courses.
VI. One professor can teach many courses
Name
Professor
Id
Name Course
Id

Professor 1 Learne 1 Course


d by
M
College Name
Id

College
Enrol
1 Student Id
l

Name
1
Conta Student
in
Room_n Room
M
o M Id

Rooms
Have
1 Division Id

Division
Type
Used 1
For Divisions
Classes
Id
M

Classes
M Time

Classes 1
Have

You might also like