Ok I'm trying to write a search function and I have the following word occurence table:
WORDID | THREADID
1 | 100
3 | 100
5 | 99
8 | 100
1 | 99
Now I I have a list of WORD ID's and I need to return results that have all the WORD ID's. For instance, if I have the word ID's 1 and 3, I need to return 100, but not 99. Is this possible in a single query?