I have a participants table as shown below
MemberID Name BookID
1 ABC 10
1 ABC 14
2 XYZ 10
3 PQR 14
I want to choose MemberIDwhich contains both BOOKID 10 and 14in one line.
Expected Result:
MemberID
1
I tried the code below, but it does not work:
select MemberID from member where BookID IN (10,14)
source
share