Hi all,
I have two tables like below.
Table 1
word block
a 1
a 1
b 1
a 2
b 2
b 2
a 3
b 3
c 3
Table 2
word
a
b
I want to find the result that any block that contains a set of value in Table 2 appear together e.g. from the above, the result should be the block 1 and 2. If Table 2 contains a,b,c then the result should be the block 3. I'm wondering that it can be written in SQL. I tried to search for SQL command but I can't find any. Thanks.
Rubis
I have two tables like below.
Table 1
word block
a 1
a 1
b 1
a 2
b 2
b 2
a 3
b 3
c 3
Table 2
word
a
b
I want to find the result that any block that contains a set of value in Table 2 appear together e.g. from the above, the result should be the block 1 and 2. If Table 2 contains a,b,c then the result should be the block 3. I'm wondering that it can be written in SQL. I tried to search for SQL command but I can't find any. Thanks.
Rubis