Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 396815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:35:21+00:00 2026-05-12T16:35:21+00:00

I want to come up with a generic schema (if possible) to use for

  • 0

I want to come up with a generic schema (if possible) to use for a number of different events that I am managing. These events can be weddings, birthday parties, etc.

So far I have 3 main tables:

  1. Contact Table – the usual info like address, phone, etc.
  2. Events Table – a list of events with some info like date, location, etc.
  3. EventInfo Table – contains the following fields (not complete but you should get the point):

EventID
ContactID
NumberofAdultsInvited
NumberofChildrenInvited
Responded (yes, no)
NumberofAdultsAttending
NumberofChildrenAttending

This is the table that I’m trying to improve. I am trying to figure out the best way to capture the event data where we want to keep track of data across adults and children.

It seems strange that I need these repetitive fields for adults and children, but I can’t think of any other way. I don’t want to put NumberAdults and NumberofChildren in the contact table because number of children doesn’t necessarily equal numberofChildreninvited (sometimes adults are just invited)

Do you have any ideas how I can clean up this schema or is the above the best that I can get?

NOTE: In the contact table, there is one entry for the family (as it has one address) so there are not fields stored per person within a family.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T16:35:21+00:00Added an answer on May 12, 2026 at 4:35 pm

    Here’s how I’d model the database based on the provided info:

    EVENTS

    • EVENT_ID
    • ADDRESS_ID

    INVITATIONS

    • CONTACT_ID
    • EVENT_ID
    • RESPONDED

    CONTACTS

    • CONTACT_ID

    It’s not a good idea to model a contact to be encompassing an entire family. It makes it easier to invite & track things if a contact represents a person rather than a household. After all, a household can have anywhere from 0 to ~18 kids, and may not include a significant other. Each person, assuming teens & up, will have unique contact info (IE: cell phone(s), work numbers, email, etc). This also makes it easier to determine headcount…

    The invitations table allows you to summarize invitations & confirmations:

      SELECT e.event_name,
             SUM(invited.contact_id) 'total_invited',
             SUM(confirmed.contact_id) 'total_invitations_confirmed'
        FROM EVENT e
        JOIN INVITATIONS invited ON invited.event_id = e.event_id
        JOIN INVITATIONS confirmed ON confirmed.event_id = e.event_id
                                AND confirmed.responded = 'Y'
    GROUP BY e.event_id, e.event_name
    

    Just need to join to CONTACTS table to determine age and then be able to subcategorize the invitations between adults & children.

    FAMILIAL_RELATIONS

    • CONTACT_ID
    • RELATED_CONTACT_ID
    • RELATION_TYPE (parent, child, aunt/uncle, cousin, blacksheep etc)

    Use this table to rollup to get household members…


    CONTACT_METHODS

    • CONTACT_ID
    • METHOD_TYPE (phone, cell, biz phone, fax, email, IM, etc)
    • METHOD_VALUE

    CONTACT_ADDRESS_XREF

    • CONTACT_ID
    • ADDRESS_ID
    • ADDRESS_TYPE (home, business, etc)

    ADDRESSES

    • ADDRESS_ID
    • ADDRESS_1
    • ADDRESS_2
    • ADDRESS_3
    • ADDRESS_4
    • CITY
    • PROV_STATE
    • POSTAL_CODE
    • COUNTRY

    You’ll notice I made a one to one relationship with EVENTS and ADDRESSES, while supporting one-to-many contact to addresses. Locations will be relatively static, compared to people. This format would allow you to easily check which event locations are popular, so you could use the information to get better rates in the future.

    Regarding addresses for the same household: That’s why the ADDRESSES is a separate table – you don’t need to retype it for each person, just associate to the correct address record.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm want to use RedirectAttibutes property that has come up in Spring 3.1, I
I want to write a generic (C/C++) library that I will use to develop
I want that the menu i have created for testing entries should come in
I want to use core-plot for drawing line graph dynamically. data won't come at
I've got a generic method: Func<IEnumerable<T>, bool> CreateFunction<T>() where T can be any number
Sorry, that's the best subject I can come up with, if I understood the
I want to come up with a language syntax. I have read a bit
I`v come across a need where I want to create multiple list items from
I want to generate XML from existing xml but values should come from some
Basically I want 200 characters maximum to come up in Console.ReadLine() for user input

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.