sorry if I'm not framing this question properly but I'm very new to SQL
statements and I can't seem to get this right I need help working out how to do a SELECT
statement with a lookup table involved, there's the situation:
Employee table
[ID], [Name], [StartDate]
User_Roles (lookup) table
[Employee_ID], [Role_ID]
Roles Table
[Id], [RoleName]
So, from what I can see the employee
has an ID, Name, and StartDate,
the User_Roles
table assigns a role ID to the user ID and
the Roles Table
has the Roles Codes.
I needed a Select statement that returns:
Employee.ID, Employee.Name, Employee.StartDate, Roles.RoleName
Based on what the mapping is in the User_Roles
table.
Many thanks in advance for your help