MY table looks like this
id | string | foreign_id
---------------------------
1 | house | 5
2 | garden | 6
3 | window | 5
...
I have an array of strings and i want to get all foreign ids which match all elements in the array. So i have an array like this [house, window] then i want to get 5. The array of strings can have up to 10 elements.
How does the appropriate sql statement look like?