I have a tabl1 with two columns (professors and the subjects they teach) and other table2 . Now I am trying to find out all the professors who can teach all the subjects in table2. I tried Join and Group by operations and got it successfully. But I heard from my friends that we can solve this problem even more efficiently using divide operator. I am trying from past two days, no luck. can some one help me in how to do that in any other way or any clue is appreciated.
Eg: table1
Prof Subject
A S1
A S4
B S1
B S3
C S1
C S2
C S3
table2
S1
S3
desired output:
C,B