If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back  dBforums > General > Database Concepts & Design > Student database - Child relationship to responsible party

LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Registered User
Join Date: Nov 2012
Posts: 2
Student database - Child relationship to responsible party

Hey Gang-

I'm curious. I'm working on a student database. I need to add a field that tells how the child and parent (or guardian) is related. As you know, the modern family is difficult. Kids live with aunts, grandparents, etc. So I'm just curious how I'd include that data in my db.

I currently have a "Parent" and Student table. So the parents, or responsible party could be linked to multiple kids.

Any thoughts? Thanks in advance!!

Reply With Quote
  #2 (permalink)  
Resident Curmudgeon
Join Date: Feb 2004
Location: In front of the computer
Posts: 14,814
I'd model people as one entity (table), relationships as another entity, and relationship types as a third entity. The relationsip entity would link two people (one weak like a chile, the other strong like a mother in the modeling sense) and describe their relationship type.

If you need to support multiple langages (English, Spanish, French, etc) you'll want to use Unicode and will need to support some kind of equivalence grouping within the relationship types so your code can easily tell that child, niņo, and enfant were equivalent relationship types.

In theory, theory and practice are identical. In practice, theory and practice are unrelated.
Reply With Quote
  #3 (permalink)  
Registered User
Join Date: Nov 2012
Posts: 2
Okay... so children and parents/guardians would be in the same table? Currently I have address info in the "Parent" table, so would that need broken out into another table?

This is the basic model I'm following... which could be totally wrong.. but I'm kinda new at this. http://www.databaseanswers.org/data_...ters/index.htm
Reply With Quote
  #4 (permalink)  
World Class Flame Warrior
Join Date: Jun 2003
Location: Ohio
Posts: 12,561
That model only covers relationships one-generation deep.
Child/Caregiver, though caregiver might have one or more "titles".
If that's all you need, then that model will do. I would just rename the Parents table to "Guardians" or "Caregivers" and add a column to define their role in the child's life.
If it's not practically useful, then it's practically useless.

www.chess.com: "sqlblindman"
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On