Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Best way to capture this information...

Best way to capture this information...

Best way to capture this information...

I'm not sure what the best way to handle some information I need to capture, so I thought I'd post it to tek-tips and see what you guys think...

It's for a database where attendees will be registered.  A person will call and register multiple people.  Those people need to be grouped together.  Typically, I would go by the person calling (person calling is not a registrant) and put their unique identifier on each attendee.  However, that person calling could have multiple groups of people they are registering and one person in each group needs to be identified as the leader of the group.  An example of 1 caller could be:
Caller 1 calls:
Caller's Group 1 is:
Registrant 1 - leader
Registrant 2
Registrant 3
Caller's Group 2 is;
Registrant 1
Registrant 2 - leader
Registrant 3

What are the best fields to create to link all this information together?


RE: Best way to capture this information...

Here's one (and certainly not the only) solution:


RegistrantID (foreign key to PersonTable)
RegistrantCallerID (foreign key to PersonTable)

The trouble with doing something right the first time is that noboby appreciates how difficult it was.
- Steven Wright

RE: Best way to capture this information...

RegistrationNum - primary key
RegisteringPerson - name of person placing registration
... plus other details on registration

RegPartyID - primary key
... plus other people who are registered

Provide the person placing the registration the RegistrationNum.

A one-to-many registration exists for the registration and the parties / people registered.  The person placing the registration is captured in case the registred party does not know their registration number.  Then, one can query for the person who placed the registration, and then find the registered party in the records retrieved.


RE: Best way to capture this information...

I'd add a third entity for Groups to give us flexibility for later. Someone's bound to ask us to store the date that a group was registered or the name of the staff member who handled it or the invoice number for this booking.

I'm also assuming that a person can be both a caller and a registrant:

PersonPK      && Primary key
Name          && Name, address, phone, etc
Caller        && Am I a caller?

RegistrantPK  && Primary key
GroupFK       && What group am I in?
PersonFK      && Who registered me?

GroupPK       && Primary key
PersonFK      && Who is the leader of this group?

Identifying the leader is an interesting decision:

Do we store it in Registrant and add code to prevent there being one and only one leader per group?

Do we store it in Group and add code to ensure that the person identified is indeed in this group?

The only way to decide is to make a start doing it both ways and see which comes out easier.

Geoff Franklin

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close