aliashippysmom
Programmer
Hi! I'm sure this isn't too difficult, but I'm having a problem with it. Maybe I've looked at it too much.
Here is my data:
Staff Table: staff_id (key), staff_name
Group Table: group_id (key), group_name
Staff_Group: group_id, staff_id Links staff people to their group. People can belong to more than one group.
I want to write a query to pull all staff who belong to BOTH Group A and Group B, say.
I've tried using an IN clause but that gave me people who belong to Group A or Group B.
Thanks!
Here is my data:
Staff Table: staff_id (key), staff_name
Group Table: group_id (key), group_name
Staff_Group: group_id, staff_id Links staff people to their group. People can belong to more than one group.
I want to write a query to pull all staff who belong to BOTH Group A and Group B, say.
I've tried using an IN clause but that gave me people who belong to Group A or Group B.
Thanks!