473,385 Members | 1,357 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Event Registration with Multiple Tables

Brilstern
208 100+
I am struggling to wrap my head around a data model, and I can't seem to find the right answer on the Google's...

I am working on setting up an event registration database (and eventually website) and I need to be able to register as a member, have members register members, and members register guest. I will include my current tables.

Expand|Select|Wrap|Line Numbers
  1. tblMember
  2. -----------------------------
  3. MemberID        Int       PK 
  4. MemberFName     VarChar
  5. MemberLName     VarChar
  6.  
  7. tblEvent
  8. -----------------------------
  9. EventID         Int       PK 
  10. EventName       VarChar
  11. EventVenue      VarChar
  12.  
  13. tblGuest
  14. -----------------------------
  15. GuestID         Int       PK 
  16. MemberID        VarChar   FK 
  17. GuestFName      VarChar
  18. GuestLName      VarChar
  19.  
  20. tblRegistration
  21. -----------------------------
  22. RegistrationID  Int       PK 
  23. MemberID        Int       FK 
  24. EventID         Int       FK 
I understand how to create registrations for the event for a member, but I am struggling to include the guest as well. Any help would be much appreciated.
Aug 23 '16 #1

✓ answered by twinnyfo

Hey Stevan,

There may be several ways to skin this cat. but I think the best option, on the surface, is below.

Instead of having a table for Members and another for Guests, have one Table for Attendees, with a Yes/No Flag for indicating "Member". Those with "True" are members, and those with "False" are Guests. There would also be a field for "Referral" (for lack of a better term), which would be the Member who registered the Guest (it would refer to itself). Then the Registration would have AttendeeID. This would allow you to quickly look at the registration for any event and identify how many members were attending, how many guests AND which members signed in the most guests (I don't know if that is something that you are planning to track).

I hope this all makes sense. More importantly, I hope this hepps!

Let me know if you have any additional questions.

6 1840
twinnyfo
3,653 Expert Mod 2GB
Hey Stevan,

There may be several ways to skin this cat. but I think the best option, on the surface, is below.

Instead of having a table for Members and another for Guests, have one Table for Attendees, with a Yes/No Flag for indicating "Member". Those with "True" are members, and those with "False" are Guests. There would also be a field for "Referral" (for lack of a better term), which would be the Member who registered the Guest (it would refer to itself). Then the Registration would have AttendeeID. This would allow you to quickly look at the registration for any event and identify how many members were attending, how many guests AND which members signed in the most guests (I don't know if that is something that you are planning to track).

I hope this all makes sense. More importantly, I hope this hepps!

Let me know if you have any additional questions.
Aug 24 '16 #2
Brilstern
208 100+
It hepps! JK lol had to get your typo in there :)

Hmm.. I see your point and why you would suggest that. To be honest, putting the data in one table never occurred to me, and for no reason other than my own head it sounds scary...

That being said.
A little background.

I am working on this for a non-profit who has sustaining members, which involves a lot more detail (another 10 tables or so) on the member side. The event feature is really separate of the membership side other than I am attempting to keep the functions in the same database simply for data reporting ease and leveraging already known data, instead of my users having to sign up with new data every time.

But this has inspired a thought. What if I added a table:
Expand|Select|Wrap|Line Numbers
  1. tblAttendee
  2. -----------------------------
  3. AttendeeID      Int       PK
  4. MemberID        Int
  5. GuestID         Int
  6. AttendeeFName   VarChar
  7. AttendeeLName   VarChar
I use my guest table and member table to feed a lookup form which would allow me to leverage the data already there, but it also allows me to enter a new guest or a member, both creating other entry's into the proper tables and also filling my attendees list as well.

The only issue there is my MemberID field now contains different types of "MemberIDs".

Now I don't like it anymore...
Aug 24 '16 #3
jforbes
1,107 Expert 1GB
I would do it the way Twinnyfo suggests, it's the epitome of normalization.

A couple of minor options you could have is to use a single field for AttendeeType in the case were an attendee could only be either a Member or Guest, but that is really minor.

Another, but probably controversial way of segregating the Attendee's Table is to build in the distinction between Member and Guest into the PrimaryKey. So you would have a PK for Members that start with "M" giving you the pattern M00001, M00002, M00003...M99999 and then use "G" as a prefix for the Guests, giving the pattern of G00001-G99999. The greatest benefit of embedding the type in the PK is that the PK can then be printed on documentation and humans can easily identify the difference between a Member and a Guest just by their ID Number. ... If it was on a nametag, it would also give them a gauge on how long someone has been a Member. I'm not saying that this should be done, just an option to consider.
Aug 25 '16 #4
twinnyfo
3,653 Expert Mod 2GB
BTW, "heppin'" is not a typo... It's just what we try to do here on Bytes. Please let us know of your success in this project and any additional means of assistance we can provide.
Aug 25 '16 #5
NeoPa
32,556 Expert Mod 16PB
Hi Stevan.

I'm with the others on this one. A single table to hold people makes better sense than having two tables do similar jobs.

Having a joining table to filter them into a single entity is just a half-way and has little going for it, while introducing unnecessary complications ;-)

For TwinnyFo and his hepp, just think of what you say being pronounced by someone from the Deep South ;-) You may even get to work out what number his nick refers to.
Aug 25 '16 #6
Brilstern
208 100+
Hmm. Well from a non-database expert, normalization is not where my mind goes to. :) But I understand the importance for sure.

I actually considered the distinction of the PK with a designator. Still on the fence on whether I like it, or if I will look more at a true/false OR member/guest field... We will see.

As far as the hepp... I get it now. Being from Texas we tend to understand things like "I'm fittin to do it" :) And the nick number comes in quite clear now haha.

Always a pleasure gents, let's hope the team like normalization.
Aug 25 '16 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: E Arredondo | last post by:
Hi, I am about migrate from an old program database to MySql (Running under RH LINUX)and I'm wondering which is the best option to do : I currently have one file for each of my modules, (I'm...
1
by: Ahmet Karaca | last post by:
Hi. myds.Reset(); mycommand.SelectCommand.CommandText= "Select att1 from Ing as Ingredient, Pro as Product "+ "where Pro.ad='apple' and Pro.id=Ing.id"; mycommand.Fill(myds, "Product"); // Here...
0
by: Brian | last post by:
Does anyone know of a DotNetNuke module for event registration? It doesn't have to be free. We have a local users group that meets once a month and we'd like to allow our members to register for...
8
by: Jason L James | last post by:
Hi all, does anyone know if I can create a dataview from multiple datatables. My dataset is constructed from four separate tables and then the relationships are added that link the tables...
5
by: mimo | last post by:
Hello, I have seen samples on how to pull data from one table and save back to it using the Form View control. How do I pull from multiple tables and save back to multiple tables on one...
6
by: ApexData | last post by:
I have 2 tables: Table1 and Table2. Neither one has a primary key because each table will only have 1-record. My form is a SingleForm unbound with tabs (my desire here). Using this form, in...
0
by: Bo | last post by:
I've got a XML file like the example below which I would like to import into a mysql database. I would like to import into multiple tables so each Channel Name gets its own table. How would I go...
5
by: Kimg0123 | last post by:
I would like to be able to append data from multiple tables into a single summary table using either an event procedure for the On Load or On Open properties on a form, but cannot seem to figure this...
0
by: redpears007 | last post by:
Morning all! :) I have a database with multiple linked tables. I have created a search form with one txt box, for entering search criteria, and a listbox for each of the tables to isplay the...
4
Claus Mygind
by: Claus Mygind | last post by:
I am wondering what is the best solution to this problem. The platform PHP 5.3 MySQL 5.0.27 MyISAM table engine Windows xP I have a reference key in multiple tables which links those...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.