I have design problem, which I would love to get a hand with. I normally don’t have problems with designing databases, but this one gives me some trouble. 🙂
I’m making a program which is basically a task-manager, where you can create Activities and Events. An Activity may or may not have an Event associated with it, and an Event will have one to many associations.
How do I design the Event database? Since every Event can have more than one association, will I need to make a table for each Event? Where the tablename is it’s unique name? I’m completely blank.
Thanks
I have design problem, which I would love to get a hand with. I
Share
No. You need some version of:
Then, to list an Event with all its Activities:
You need the
LEFT OUTER JOINinstead of the usualINNER JOINin case there are no Activities for the event.