Hi,
I have 2 tables tbl_class & tbl_Divisions.
structure:
tbl_class tbl_Divisions tbl_class_division
---------- ------------- -------------------
class_Id (pk) division_Id(pk) class_division_id(pk)
class_name division_name class_Id(fk)
division_Id(fk)
In my application I want to select division_Id,division_name by passing more than one class_id.
if I pass 3 class_Id's , I want to get only those divisions that are common to all the 3 classes.
How can i written a query for that.
I used join query , but I got all the divisions the 3 classes have.
Thanks in advance.