MySQL Forums
Forum List  »  Newbie

Re: Basic Design Question
Posted by: Vsevolod Afanassiev
Date: October 08, 2016 05:35AM

It depends on the business logic:
- If you need to track all attendees for an event then EVENTS would be parent table and ATTENDEES would be child table. For example, if I was organizing Oracle Open World conference the EVENTS table wold have only a few records: OOW2010, OOW2011, OOW2012, etc while there will be thousands of attendees.
- If you need to track all events attended by a person then ATTENDEES would be parent table and EVENTS would be child table. For example, if I decided to keep track of events attended by my family members then attendees would have only a few lines (me, my wife, our kids) while table EVENTS would contain movies, sleepovers, etc.

Options: ReplyQuote


Subject
Written By
Posted
October 07, 2016 02:07PM
October 07, 2016 02:38PM
Re: Basic Design Question
October 08, 2016 05:35AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.