I have an [Employee Group] table (such as Business Analyst, Project Manager, System Engineer, etc.)
I have an [Employee] table which has fields for Emp_Idx, Name, Emp_Grp_Num, etc.
The two tables have a relationship [Employee Group].[Emp_Grp_Idx] to [Employee].[Emp_Grp_Num]
I also have an [Applications] table with a list of different computer applications we use.
In the Application table the fields are: AppIdx, App_Name, BA_Num, and PM_Num. BA_Num is the index number of the employee who is a BA. The same for PM_Num.
I want to create a query that lists the applications and who the BA and PM are. I can get the BA and PM numbers, but since both these numbers are coming from the same [Employee] table I am having trouble creating the right relationship and getting the query to give me both sets of names.
Any thoughts? What am I doing wrong? Do I need to set up a BA and PM subquery? If I do, how will that affect referential integrity?
As always, Thank you.