Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 28th, 2003, 06:05 PM
tonyradoni tonyradoni is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 1 tonyradoni User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation Erd

Hello everyone,

I have modelled Entity relationship diagram (logical design) for a database that works with hospital environment. I wonder weather I have normalised data or not.

The Design can be viewed or downloaded from: URL

Regards,
Tony Radoni

Last edited by tonyradoni : December 28th, 2003 at 06:17 PM.

Reply With Quote
  #2  
Old January 5th, 2004, 01:43 PM
madmatt75 madmatt75 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Binghamton, NY
Posts: 22 madmatt75 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
It is normalized. However for any given event_id, you'll need to visit up to 6 tables to find who was involved with the event.

Personally, I would replace tables Nurse, Anaesthetist, Consultant, Doctor and Surgeon with just one table:
Personnel
------------
Personnel_id primary key
Personnel_type tinyint (1 = Nurse, 2 = Anaest., 3= consultant, 4 = doctor, 5 = surgeon)
Last Name
First Name
On_Call_Tel
etc.


Then you can replace tables Nurse_event, Anaesthetist_event and Surgeon_Event with one table:
Personnel_Event
-------------------
ID primary key
Personnel_id
Event_id


-Matt.

Reply With Quote
  #3  
Old January 6th, 2004, 07:18 AM
rycamor rycamor is offline
Gödelian monster
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 1999
Location: Pembroke Pines, Florida, USA
Posts: 2,300 rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 3 h 12 m 27 sec
Reputation Power: 53
I generally agree with madmatt75, although there is really no need to force an attribute like Personnel_type into an INT or TINYINT. (Yes, there is a slight performance gain on very large databases, but there is a corresponding loss of data readability--let the data speak for itself as much as possible). Also, you might want an external "validation table", detailing the available Personnel types, in which case the Personnel_type column has a foreign key lookup to the validation table. (This foreign key can be INT or it can be a VARCHAR, as I mentioned for readability).
__________________
The real n-tier system:

FreeBSD -> PostgreSQL -> [any_language] -> Apache -> Mozilla/XUL

Amazon wishlist -- rycamor (at) gmail.com

Reply With Quote
  #4  
Old January 6th, 2004, 06:43 PM
SPENCER LEE SPENCER LEE is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: UK
Posts: 2 SPENCER LEE User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
lOOKS PRETTY GOOD TO ME.

PS WHAT DID YOU USE TO CTEATE YOUR ERD

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > Erd


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway