Hi all,
I need some help with a quite basic select query. I've been trying to find out how to do it, without luck π
I have this table called "relation" which has these items:
id id_prop id_equip
1 0 3
2 0 4
4 0 8
5 0 10
6 1 8
7 1 11
8 2 5
9 2 11
The query I need, has to find out the id_prop that has the selected id_equip's. Some examples:
Who has id_equip 3 and 4? result: 0 (from id_prop)
Who has id_equip 8? result: 0 and 1
Who has id_equip 11? result: 1 and 2
Who has id_equip 8 and 11? result: 1
SELECT id_prop FROM relation .... ?
Thanks a lot in advance π
Victor