Ok say I have one table of animals ... say it's called ANIMALS
ID/Common Name/Species/Category/Etc.
Now I have another table of inventory of these animals in another table .... say it's called ANIMALINVENTORY
ID/AnimalID(filled with ANIMAL.id's)/CageLocation/SeenVet/Etc.
Now, I have a table of animals that shows only a certain Category at one time in a table. I can sort by species name (easy), but I was wondering if you guys know how I would go about ordering by the count in ANIMALINVENTORY from say greatest to least.
Any help would be appreciated. I hope my question is clear enough. I can do it with arrays and whatever, but I'm wondering if there's a single sql statement way.