T
topgunnin8
My data consists of many records and a lot of fields for each record. My
initial thought was to define an ID for each record and create multiple
tables where the fields are grouped by topic. But I guess I could also just
create a single table with many fields. Is there any reason to choose one
over the other? I think breaking it down would make it cleaner, but I would
have to store the ID about 10 extra times.
Here is a semi-example, it should not make sense, but hopefully you can see
how the fields can be grouped, but don't need to be:
ID: 1
Distributor: SFS
Cost: 76.55
Arrival Date: Jan 2, 2003
Number of Bananas: 18
Number of Apples: 83
Number of Oranges: 12
Number of Pineapples: 7
Number of Fruits from Florida: 56
Number of Fruits from California: 14
Number of Fruits from Washington: 50
So, for the above data, should I create a single table with every field or
would it be better to create 3 tables, one with ID, Distributor, Arrival
Date, and Cost; another with number of bananas, apples, oranges, pinapples
and ID; and another with number of fruits from Florida, California,
Washington and ID?
Thanks.
-Tom...
initial thought was to define an ID for each record and create multiple
tables where the fields are grouped by topic. But I guess I could also just
create a single table with many fields. Is there any reason to choose one
over the other? I think breaking it down would make it cleaner, but I would
have to store the ID about 10 extra times.
Here is a semi-example, it should not make sense, but hopefully you can see
how the fields can be grouped, but don't need to be:
ID: 1
Distributor: SFS
Cost: 76.55
Arrival Date: Jan 2, 2003
Number of Bananas: 18
Number of Apples: 83
Number of Oranges: 12
Number of Pineapples: 7
Number of Fruits from Florida: 56
Number of Fruits from California: 14
Number of Fruits from Washington: 50
So, for the above data, should I create a single table with every field or
would it be better to create 3 tables, one with ID, Distributor, Arrival
Date, and Cost; another with number of bananas, apples, oranges, pinapples
and ID; and another with number of fruits from Florida, California,
Washington and ID?
Thanks.
-Tom...