With the UNIQUE constraint, I can make sure that no duplicate values are entered in a particular field on a table. Is there a method for allowing only certain number of duplicates? For example, if it were possible to limit the max duplicate values to 2, for the field animal, I could have 2 rows with the animal field having a value of frog, but any further attempts to insert a row with the animal field set to frog would fail.
I understand that I might be showing an embarrassing lack of data normalization skill here. I would appreciate any suggestions on workarounds as well.
Thanks!