Hmmmm, evasive query this...
I have tables: tblEmployeedetails,tblParttimeEmp, tblFulltimeEmp,tblEmployee and tblClubs
ParttimeEmp and FulltimeEmp are subsets of tblEmployee and thus all have the same PK(empid). TblEmployee is linked to the tblEmployeedetails via the same PK(empid). TblEmployeedetails has 2 PKs: (PK)ClubID and (PK)empid.
I need to write a query that shows all the different Clubs and how many Parttime employees (COUNT) and Fulltime employees (COUNT) they have.
I have several different versions of an attempt, and most versions gave me COUNT = 0 for both types of employees!
I have tables: tblEmployeedetails,tblParttimeEmp, tblFulltimeEmp,tblEmployee and tblClubs
ParttimeEmp and FulltimeEmp are subsets of tblEmployee and thus all have the same PK(empid). TblEmployee is linked to the tblEmployeedetails via the same PK(empid). TblEmployeedetails has 2 PKs: (PK)ClubID and (PK)empid.
I need to write a query that shows all the different Clubs and how many Parttime employees (COUNT) and Fulltime employees (COUNT) they have.
I have several different versions of an attempt, and most versions gave me COUNT = 0 for both types of employees!