I'm rebuilding a database that was very poorly designed. It's not relational at all. It's pretty much a bunch of tables that hold information, all thrown together.
Now, I have some issues. I want it to be 100% relational. I want it to be fast. here's some issues;
1) I have about 60,000 tickets. Tickets have about 60 different fields between the 20 different ticket types. There are 19 fields that are basic to all tickets. Not all tickets are related. Cash are only offset by proof tickets. Proof tickets are only offset by teller type ticketse (there's about 18 different types offset them) The other 18 types can only be offset by proof or one of the 18 types of tickets.
Should I have 1 main table for the tickets with the 19 fields and sub tables for the different types of tickets?
or should I have 1 main list table, (has the id's) 3 sub tables for the different 'categories' of tickets, and then 18 more sub sub tables for ticket types?
Randall Vollen
National City Bank Corp.
Just because you have an answer - doesn't mean it's the best answer.
Now, I have some issues. I want it to be 100% relational. I want it to be fast. here's some issues;
1) I have about 60,000 tickets. Tickets have about 60 different fields between the 20 different ticket types. There are 19 fields that are basic to all tickets. Not all tickets are related. Cash are only offset by proof tickets. Proof tickets are only offset by teller type ticketse (there's about 18 different types offset them) The other 18 types can only be offset by proof or one of the 18 types of tickets.
Should I have 1 main table for the tickets with the 19 fields and sub tables for the different types of tickets?
or should I have 1 main list table, (has the id's) 3 sub tables for the different 'categories' of tickets, and then 18 more sub sub tables for ticket types?
Randall Vollen
National City Bank Corp.
Just because you have an answer - doesn't mean it's the best answer.