Hi, I'm an sql noob and I would like to know if there is an easy way to
query data from this table
I have a table with ID,RANK, WORD as columns, id and rank are ints and word
is a text field. There are multiple entries for any number of id's.
ex.
1,5,word1
1,4.3,word2
1,2,word3
2,5,word1
2,4.3,word2
2,2,word3
etc.
What I want to get out of it is: Show me all ID's where there is both a row
that contains "word1" and a row that contains "word2".
Any pointers?
Thanks,
Jay
query data from this table
I have a table with ID,RANK, WORD as columns, id and rank are ints and word
is a text field. There are multiple entries for any number of id's.
ex.
1,5,word1
1,4.3,word2
1,2,word3
2,5,word1
2,4.3,word2
2,2,word3
etc.
What I want to get out of it is: Show me all ID's where there is both a row
that contains "word1" and a row that contains "word2".
Any pointers?
Thanks,
Jay
Comment