I have a lookup table that I use to force users to pick the value for a field from a list. Let's say that it's a list of fruit, and the table has the field 'FavoriteFruit'.
Seeing as how my list of fruits are all unique (there won't be two choices that contain the exact same values), then why bother creating a separate index for the list?
Why can't the table be like this:
tblFruitList
---------
FruitName (primary key)
---------
Apple
Banana
Kiwi
Orange
As opposed to this:
tblFruitList
------------
FruitID(PK) FruitName
------- ---------
1 Apple
2 Banana
3 Kiwi
4 Orange
It seems to create difficulities when displaying table data in a form, as the information in the table is a number, not a name.
Please comment.
Thanks in advance. Onwards,
Q-
Seeing as how my list of fruits are all unique (there won't be two choices that contain the exact same values), then why bother creating a separate index for the list?
Why can't the table be like this:
tblFruitList
---------
FruitName (primary key)
---------
Apple
Banana
Kiwi
Orange
As opposed to this:
tblFruitList
------------
FruitID(PK) FruitName
------- ---------
1 Apple
2 Banana
3 Kiwi
4 Orange
It seems to create difficulities when displaying table data in a form, as the information in the table is a number, not a name.
Please comment.
Thanks in advance. Onwards,
Q-