Lets say we have some values in a table like below with id vaues: 1 = animal, 2=carnivorous, 3=herbivorous
animals
name----------propertyId
cat ----------------1
dog ---------------1
rabbit--------------1
cat-----------------2
dog----------------2
rabbit--------------3
how can i select propertyId of values like:
cat&dog&rabbit ---> 1 (animal)
cat&dog ---> 2 (carnivorous)
Edit: Rabbit. Thanks Vland :)