home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Figuring out the entity relationships

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2120
Discussions: 200,948, Posts: 2,379,394, Members: 246,309
Old October 18th, 2003, 02:21 AM   Digg it!   #1 (permalink)
Ultimate Member
 
Tekk's Avatar
 
Join Date: Oct 2001
Location: Pasadena, CA
Posts: 2,177
Figuring out the entity relationships

Well Im trying to figure out the final many:many relationship between the entities I have here. I talked to my teacher and she gave me a real vague clue (I didn't want the answer at all but she basically told me something that I already knew...no help at all). So I have 7 entities and the project says there is 8 total. What Im trying to figure out is which of the two would it be? I have narrowed it down between the room/service entities or the employee/service_performed entities. What Im also wondering is if there can even be a many:many relationship between a normal entity and an event entity (which is what the employee/service_performed relationship is consider s_p is an event)?

Damn logic of this stuff sometimes confuses me. If someone has an idea then that'd be awesome. Thanks a bunch. Maybe give me ideas to head in the right direction...

Tekk
__________________
YAH! I knew you'd be jealous
Tekk is offline   Reply With Quote
Old October 18th, 2003, 02:30 AM     #2 (permalink)
Ultimate Member
 
Tekk's Avatar
 
Join Date: Oct 2001
Location: Pasadena, CA
Posts: 2,177
oops...here's the pic of the diagram
Attached Thumbnails
figuring-out-entity-relationships-erdiagram.jpg  
Tekk is offline   Reply With Quote
Old October 18th, 2003, 02:32 AM     #3 (permalink)
Ultimate Member
 
Join Date: Oct 2001
Posts: 10,821
"The Entity"?? I thought maybe Prince had a new name or something.

JP
__________________
"Even a fool is thought to be wise if he is silent"
John Prophet is offline   Reply With Quote
Old October 18th, 2003, 02:33 AM     #4 (permalink)
Not Really a Member
 
Join Date: Oct 2001
Posts: 25,386
hmm not sure about a employee/service relationship...

I understand many:many relationships just fine..

Class:students is a many to many

Each student can have many classes, and each class has many students

Can you give some examples on the employee/service?


Hmm maybe a room offers many services, and each service is offered in many rooms?
__________________
Helicopters don't fly; they vibrate so much and make so much noise that the earth rejects them.
vass0922 is offline   Reply With Quote
Old October 18th, 2003, 02:36 AM     #5 (permalink)
Ultimate Member
 
Tekk's Avatar
 
Join Date: Oct 2001
Location: Pasadena, CA
Posts: 2,177
Each employee can perform many services, and each service can be performed by many employees.

For example, an employee can have multiple services to do (clean a room, wash the laundry, etc) while each service can be done by many different employees (Jack can clean a room and then later Bob can clean another room).
Tekk is offline   Reply With Quote
Old October 18th, 2003, 02:40 AM     #6 (permalink)
Ultimate Member
 
Tekk's Avatar
 
Join Date: Oct 2001
Location: Pasadena, CA
Posts: 2,177
Of course, the project also lists the attributes for each entity and one of the listed attributes for employee is "Employee_Job_Code" which can lead one to believe that each employee really does only have one specific job and no other, which would change the relationship
Tekk is offline   Reply With Quote
Old October 18th, 2003, 03:26 AM     #7 (permalink)
Not Really a Member
 
Join Date: Oct 2001
Posts: 25,386
not necessarily

If his job code is 'sanitation engineer' he could perform many services

It depends on the definition of the attribute
vass0922 is offline   Reply With Quote
Old October 18th, 2003, 04:11 AM     #8 (permalink)
Ultimate Member
 
Tekk's Avatar
 
Join Date: Oct 2001
Location: Pasadena, CA
Posts: 2,177
True...nevermind on that. Makes too much sense that each employee can do multiple jobs.
Tekk is offline   Reply With Quote
Old October 18th, 2003, 04:59 AM     #9 (permalink)
Not Really a Member
 
Join Date: Oct 2001
Posts: 25,386
well.. then there are those OTHER employees.. they can take a smoke break.. go to the bathroom.. smoke break.. lunch

there still something you need or confused about?
vass0922 is offline   Reply With Quote
Old October 18th, 2003, 05:10 AM     #10 (permalink)
Ultimate Member
 
Tekk's Avatar
 
Join Date: Oct 2001
Location: Pasadena, CA
Posts: 2,177
This is what I have so far.....should the Room_Services be changed to an event such as Room_Serviced? Plus whether or not that is an even, Im a little confused on whether the relationships need to be identifying or non-identifying. Would leaving those correlative entities with just 2 keys be ok? (considering we're not supposed to add attributes unless its too an event where we could only add a counter key XXXX_Number)
Tekk is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Making Health Care Worse (171)
The disrespect of Obama by Russian .. (22)
Is It Just Me? (2935)
Wireless Televisions. (12)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Regular Build (6)
Is the PSU I received dead? (12)
radeon x850xt platinum & shader.. (5)
Print spooler problem (15)
HIS HD5770 graphic card question (15)
windows vista security holes (9)
Install XP pro and a Vista laptop ?.. (11)
Dept. of HS: NSA 'Helped' Develop V.. (15)
Recent Discussions
Wireless Televisions. (12)
Graphics Card Upgrade Question (3)
How to convert MP3's (3)
Laptop with wireless problem. (2)
Internet Lost (1)
Hp Artist Edition + Matching Bag (0)
My monitor won't turn on after instal.. (0)
Asus P4G8X Mobo (6)
radeon x850xt platinum & shader 3 (5)
Xbox 360 GTA: SA disk error (1)
Is the PSU I received dead? (12)
windows 7 internet problem (5)
Multiple Restarts Required at Boot (0)
BSOD On Startup (ntoskrnl.exe) (2)
Print spooler problem (15)
Have you switched yet? (86)
screen resolution vs monitor size (2)
sms storage to PC (0)
Regular Build (6)
Open With ..... Win7 (0)
java code for fibonacci (1)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (35)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Partition Magic caused HDD problem (3)


All times are GMT -4. The time now is 08:45 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28