Mile-O
Back once again...
- Local time
- Today, 18:08
- Joined
- Dec 10, 2002
- Messages
- 11,316
quick question, when it says for instance, ShowID (Foreign Key, Number) and ShowID (Primary Key, Autonumber) do I just have it get the ShowID, or the show name? And if so, how would some one know what the ID is to the ShowName?
You only need the ID. The relationships in the database allow you to join between the tables, using these keys, to get the data from other tables.
Do you take your own tables of that size to fit a booth, or is that the size of the booth you request at the events? If the latter, then it's more than likely a Cost, that goes into the Costs table mentioned, perhaps with a separate Cost Types table, so that things like Booths, Vehicle Rent, meals, whatever can be logged.That is like our table size for each show, 10X10 booth, its really booth size, not table.
If you look down your existing database, you had Cabool Farm Fest three times, once per year 2012 to 2014. You are treating each one as a Show.Also, what is the difference between "Event" and "Show??"
However, the way I see it, is that Cabool Farm Fest (in general) is a Show that you do, and there were three instances of this show...and I'm calling these instances Events.
Part of the idea of data in a database - or the first rule, anyway - is that data in each cell be atomic....at the lowest it can possible go. No storing things like Rod, Jane, and Fred. in one field. Or apples, bananas, and carrots. You would have a separate record for 'Rod', 'Jane', and 'Fred'. Ditto those 'apples', 'bananas', and 'carrots'.
Applying that to your data, you have:
Cabool Farm Fest 05-2012
Cabool Farm Fest 05-2013
Cabool Farm Fest 05-2014
Cabool Farm Fest 05-2013
Cabool Farm Fest 05-2014
What we have here is two elements of data in a single field. The Show itself and the date that it is taking place. However, there's no need to store that date in the name of the show as you already have fields called StartDate and EndDate, which tell us the times of the show. If need be, this date can be concatenated in a query...
...check out the attachement for a more visual example with your own data.
Attachments
Last edited: