Sorry if this query is already asked, but i searched and can't find anything that resolve my issue.
I have two tables:
Table1:
Act Marks
Paint 6
Paint 7
Paint 16
Paint 17
Swim 6
Swim 2
Sea 448
Sea 17
Drama 6
Drama 7
Drama 16
Table 2:
Marks Service_cordinator
6 X3
7 A2
16 A3
17 X1
1 X2
2 X3
448 X4
234 X5
Query is to fetch all the Acts which has service coordinator X3,A2, and A3.
i.e. query should return Paint and Drama
There is no primary key / foregin key relationship in table. Only relation is Marks which is common among both table.