R
Ryan Langton
I know an average amount about data structuring to 4th normal form and
beyond, but have a question for the experts out there. In a database
application our company owns, the tables seem to me to be a bit oddly
structured. Heres just a hypothetical example of the "Animal" table the way
I would envision it.
Table: Animal
(PK) Animal Number
Animal Name
Animal Weight
Animal Sex
(FK) Animal Left Eye Color ID
(FK) Animal Right Eye Color ID
Heres how the tables are constructed
Table: Animal
(PK) Animal Number
Animal Name
Animal Weight
Animal Sex
Table: AnimalEyes
(PK) Animal Eye ID
(FK) Animal Number
(FK) Eye Color ID
Left Right (boolean field for left or right)
Both examples would have of course a third table (Eye Color)
Table: EyeColor
(PK) Eye Color ID
Color Name
The way the tables are currently constructed seems very extraneous to me and
it is causing difficulties in troubleshooting. For one, there are excessive
sub-forms so that all the data can be displayed on a single page. There are
about 10 subforms on the main user interface that just consist of a single
combo box! Is it me or are these tables structured poorly?
Thanks,
Ryan
beyond, but have a question for the experts out there. In a database
application our company owns, the tables seem to me to be a bit oddly
structured. Heres just a hypothetical example of the "Animal" table the way
I would envision it.
Table: Animal
(PK) Animal Number
Animal Name
Animal Weight
Animal Sex
(FK) Animal Left Eye Color ID
(FK) Animal Right Eye Color ID
Heres how the tables are constructed
Table: Animal
(PK) Animal Number
Animal Name
Animal Weight
Animal Sex
Table: AnimalEyes
(PK) Animal Eye ID
(FK) Animal Number
(FK) Eye Color ID
Left Right (boolean field for left or right)
Both examples would have of course a third table (Eye Color)
Table: EyeColor
(PK) Eye Color ID
Color Name
The way the tables are currently constructed seems very extraneous to me and
it is causing difficulties in troubleshooting. For one, there are excessive
sub-forms so that all the data can be displayed on a single page. There are
about 10 subforms on the main user interface that just consist of a single
combo box! Is it me or are these tables structured poorly?
Thanks,
Ryan