User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Database Design section within the Web Development category of DaniWeb, a massive community of 375,214 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,286 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Database Design advertiser:
Views: 1138 | Replies: 2
Reply
Join Date: May 2008
Posts: 3
Reputation: ranasingh1984 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ranasingh1984 ranasingh1984 is offline Offline
Newbie Poster

ER Diagram Help

  #1  
May 4th, 2008
I was wondering if you could help me with a current issue I am having whilst developing an ER diagram. The problem I am having is with identifying the correct Entities. The scenario I am trying to complete is given below. I have also included a list of entities which I think are needed, however I do not know if these are correct, could you suggest any possible entities and whether the ones I have identified are correct. I have also suggested a few possible relationships please could you assist me in determining whether these are correct.

SCENARIO
A heavy equipment hire company wishes to create a database to monitor the hiring of equipment to clients. The company has two types of equipment: power tools, such as drills and vacuum cleaners, and plants such as excavators and rollers. Power tools are described by their model and the voltage they use, whereas plants are classified by their model and their size in tonnes. The company has various outlets and each outlet has staff including a Manager and several Senior Technicians who are responsible for supervising the work of allocated groups of Technicians. Each outlet has a stock of equipment for hire that may be hired by clients for various periods of time, from a minimum of four hours to a maximum of six months. Each hire agreement between a client and the company is uniquely identified by using a hire number. The company insists that a client must take out an insurance cover for each equipment hire period. Each piece of equipment is checked for faults when it is returned by the client.

The Entities I have identified are as follows:

Equipment
Power Tools
Plants
Company
Outlets
Manager
Senior Technician
Technicians
Client
Hire
Hire agreement
Insurance

Company has * (many) equipment
Equipment has *(many) plants
Equipment has * power tools
Company has 1..* (many) outlets
Outlet has 1..1 manager
Outlet has * (many) senior technicians
Outlet has * (many) technicians
Outlet has for hire * (many) equipment
Outlet has * (many) clients
Client can hire 1..* (one to many) Equipment
Client can have 1..* (one to many) Hire Agreements
Client can have 1..* (one to many) insurance
Hire can have * (many) Hire Agreements
Hire Agreement has * (many) Insurance

As you may have established I am new to the field of ER Diagrams so I apologise for waffling on.

I will be grateful for any help

Regards
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2008
Posts: 7
Reputation: schumaj is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
schumaj schumaj is offline Offline
Newbie Poster

Re: ER Diagram Help

  #2  
May 13th, 2008
The business rules listed are not the structural ones and have to be programmed in by the implementer of the database, you just have to list them.

Business rules:
The company insists that a client must take out an insurance cover for each equipment hire period.
Each piece of equipment is checked for faults when it is returned by the client.
Each outlet has a stock of equipment for hire that may be hired by clients for various periods of time, from a minimum of four hours to a maximum of six months.

Your entities are:

EQUIPMENT
PEOPLE
LOG (which is an intersection entity between EQUIPMENT and CLIENT)
OUTLET
LOCATION
JOB

In EQUIPMENT:
#ID
*Model
SUBTYPES:
POWER_TOOLS
*Voltage
PLANTS
*Size

In PEOPLE:
#ID
*lname
*fname
*DOB
manager_id
job_id (fk References job_id of JOB)
location_id (fk References id of LOCATION)

In LOCATION:
#id
*name

In JOB:
#id
* name

In LOG:
# hire_number
* client_ID
* equipment_ID


If you need help with the relationships, ask, but the one between the subtypes in the EQUIPMENT entity will go to the LOG entity as an arc. It would be easier for me to draw it rather than type it all out.
Reply With Quote  
Join Date: May 2008
Posts: 35
Reputation: lich is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 2
lich lich is offline Offline
Light Poster

Re: ER Diagram Help

  #3  
May 18th, 2008
Originally Posted by schumaj View Post
The business rules listed are not the structural ones and have to be programmed in by the implementer of the database, you just have to list them.

Business rules:
The company insists that a client must take out an insurance cover for each equipment hire period.
Each piece of equipment is checked for faults when it is returned by the client.
Each outlet has a stock of equipment for hire that may be hired by clients for various periods of time, from a minimum of four hours to a maximum of six months.

Your entities are:

EQUIPMENT
PEOPLE
LOG (which is an intersection entity between EQUIPMENT and CLIENT)
OUTLET
LOCATION
JOB

In EQUIPMENT:
#ID
*Model
SUBTYPES:
POWER_TOOLS
*Voltage
PLANTS
*Size

In PEOPLE:
#ID
*lname
*fname
*DOB
manager_id
job_id (fk References job_id of JOB)
location_id (fk References id of LOCATION)

In LOCATION:
#id
*name

In JOB:
#id
* name

In LOG:
# hire_number
* client_ID
* equipment_ID


If you need help with the relationships, ask, but the one between the subtypes in the EQUIPMENT entity will go to the LOG entity as an arc. It would be easier for me to draw it rather than type it all out.
wow. this gives more info about ER. even im learning about it. thanks a lot
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Database Design Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Database Design Forum

All times are GMT -4. The time now is 3:09 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC