I have table structure in this format:
# id attributeId projectId
'28' '20' '87'
'29' '21' '87'
'30' '22' '570'
'31' '20' '570'
'32' '30' '570'
I want to pass attribute IDs as parameter and get the projectId which has all attributes assigned to it.
For ex : if I pass 20,30 attribute Ids, i should only get 570 project ID and not 87, as 30 is not assigned to 87.
SELECT * FROM fm05__project_attributes where attributeId in (20,30);
The above query gives me, the below result which is not correct.
id attributeId projectId
28 20 87
31 20 570
32 30 570