Thread: Categorizing
View Single Post
Old Jan 17th, 2007, 2:42 PM   #2
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by gj15987 View Post
As it stands I have a category field in each animal record where I put its lowest category, in this case pythons.

I have a category table: category(id, name, parent). Parent being the parent category of that category.
Remove the category field from the animals table, and add in a linking table that connects categories to animals.

e.g.
category_animal(category_id, animal_id)
Arevos is offline   Reply With Quote