| | |
DataBase Design Help
Please support our Database Design advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Oct 2008
Posts: 15
Reputation:
Solved Threads: 0
Hi Everyone
I have been given the task of designing a database for a volutery organsiation and i have been give the following information as basis to design the database.The following information below is example of a paper record
•Volunteer details
Volunteer ID
Name
Telephone
Address
Services provided by volunteer
Code Service
01 Translation
05 Wheel Chair pushing
09 Baby sitting
Booking records
client no client name date required hours required service code
004 Lee Wong 19/01/08 2 01
004 Lee Wong 02/02/08 1 05
006 Sara Plat 04/02/08 3 09
007 Jay Palin 04/02/08 05
Assume also that additional details are kept for clients, including address, telephone numbers and next of kin. Clients who have pets have information stored on these as well (pet number, pet name, and description). Clients who have children and require baby sitting have the following information: child number, name, date of birth, sex.
Can anyone help me produce an Entity-Relationship diagram for this organsiation
secondly convert that ER daigram into relational model by specifying the primary and foreign keys, mapping any one-to-one relationships into relations, and decomposing any many-to-many relationships
A relation diagram and ERD diagram for the above organization
To be honest with ya'all i dont know where to start can someone guide me to enlightment by making a relation diagram and ERD diagram for the above organisation
I really appreciate you help and will be grateful for any help.
Thanx,
Lee
I have been given the task of designing a database for a volutery organsiation and i have been give the following information as basis to design the database.The following information below is example of a paper record
•Volunteer details
Volunteer ID
Name
Telephone
Address
Services provided by volunteer
Code Service
01 Translation
05 Wheel Chair pushing
09 Baby sitting
Booking records
client no client name date required hours required service code
004 Lee Wong 19/01/08 2 01
004 Lee Wong 02/02/08 1 05
006 Sara Plat 04/02/08 3 09
007 Jay Palin 04/02/08 05
Assume also that additional details are kept for clients, including address, telephone numbers and next of kin. Clients who have pets have information stored on these as well (pet number, pet name, and description). Clients who have children and require baby sitting have the following information: child number, name, date of birth, sex.
Can anyone help me produce an Entity-Relationship diagram for this organsiation
secondly convert that ER daigram into relational model by specifying the primary and foreign keys, mapping any one-to-one relationships into relations, and decomposing any many-to-many relationships
A relation diagram and ERD diagram for the above organization
To be honest with ya'all i dont know where to start can someone guide me to enlightment by making a relation diagram and ERD diagram for the above organisation
I really appreciate you help and will be grateful for any help.
Thanx,
Lee
•
•
Join Date: Aug 2008
Posts: 1,160
Reputation:
Solved Threads: 137
very clear question and thanks for showing your effort and what you are having trouble with
i'm not too big on vocabulary, but you want to try to get the database to use third normal form
something like this for your bookingrecords table
bookingrecords
CLIENT_ID
DATE
REQUIRED_HOURS
REQUIRED_SERVICE_CODE
clients
CLIENT_ID
CLIENT_NAME
ADDRESS
CITY
STATE
ZIP (sometimes demographics are in a separate table but we'll keep it simple)
PHONE
clientfamily
CLIENT_FAMILY_ID
CLIENT_ID
CONTACT_NAME
DATE_OF_BIRTH
SEX
RELATIONSHIP_ID
relationship
RELATIONSHIP_ID
RELATIONSHIP_NAME
clientpets
CLIENT_PET_ID
PET_NAME
PET_DESCRIPTION
some of the requirements are a little fuzzy, like who owns the pets, client or a family member
that should be enough to get you started, let me know if you need any clarification
i'm not too big on vocabulary, but you want to try to get the database to use third normal form
something like this for your bookingrecords table
bookingrecords
CLIENT_ID
DATE
REQUIRED_HOURS
REQUIRED_SERVICE_CODE
clients
CLIENT_ID
CLIENT_NAME
ADDRESS
CITY
STATE
ZIP (sometimes demographics are in a separate table but we'll keep it simple)
PHONE
clientfamily
CLIENT_FAMILY_ID
CLIENT_ID
CONTACT_NAME
DATE_OF_BIRTH
SEX
RELATIONSHIP_ID
relationship
RELATIONSHIP_ID
RELATIONSHIP_NAME
clientpets
CLIENT_PET_ID
PET_NAME
PET_DESCRIPTION
some of the requirements are a little fuzzy, like who owns the pets, client or a family member
that should be enough to get you started, let me know if you need any clarification
Custom Application & Software Development
www.houseshark.net
www.houseshark.net
•
•
Join Date: Aug 2008
Posts: 1,160
Reputation:
Solved Threads: 137
then this table structure should work for you
Custom Application & Software Development
www.houseshark.net
www.houseshark.net
•
•
Join Date: Aug 2008
Posts: 1,160
Reputation:
Solved Threads: 137
ahhh, now with the document i see how volunteers are related
volunteers
VOLUNTEER_ID
NAME
TELEPHONE
ADDRESS
volunteerservicesprovided
VOLUNTEER_SERVICE_ID (optional)
VOLUNTEER_ID
SERVICE_CODE
change booking records to this
bookingrecords
CLIENT_ID
DATE
REQUIRED_HOURS
REQUIRED_SERVICE_CODE
VOLUNTEER_ID
this way, if a volunteer ever changes his service offered, you still have record of which volunteer did the service
volunteers
VOLUNTEER_ID
NAME
TELEPHONE
ADDRESS
volunteerservicesprovided
VOLUNTEER_SERVICE_ID (optional)
VOLUNTEER_ID
SERVICE_CODE
change booking records to this
bookingrecords
CLIENT_ID
DATE
REQUIRED_HOURS
REQUIRED_SERVICE_CODE
VOLUNTEER_ID
this way, if a volunteer ever changes his service offered, you still have record of which volunteer did the service
Custom Application & Software Development
www.houseshark.net
www.houseshark.net
•
•
Join Date: Aug 2008
Posts: 1,160
Reputation:
Solved Threads: 137
you can just use this post here, so everyone can benefit from it and be able to offer you advice
Custom Application & Software Development
www.houseshark.net
www.houseshark.net
![]() |
Similar Threads
- your ideas on database design??? (Database Design)
- Database design regarding two 'linking' tables (Database Design)
- Database Design for storing versions (Database Design)
- Database Design feedback (absolute beginner here :) (Database Design)
- Help with contact/mailing list database design... (Database Design)
- Database design - subtypes and instances of an entity (Database Design)
- Database Design - Supertypes and Subtypes (Database Design)
- Database Design Advice (MySQL)
Other Threads in the Database Design Forum
- Previous Thread: Object-oriented database design
- Next Thread: Help defining relationship
| Thread Tools | Search this Thread |






