johnwayneoftheseas
Registered User.
- Local time
- Yesterday, 21:25
- Joined
- Aug 8, 2008
- Messages
- 14
Hi!
I know I'm simply not having any luck writing the SQL statement to produce the results I'm looking for and I was hoping you could help!
I have a query in which I am pulling up IndividualID, IndividualName, StaffID (which is actually the Individual ID, but is a foreign key in a separate table), TypeofContact and DateofContact.
What I want is for the StaffID to show me the names of staff, not their ID numbers. I wrote a query to do this, but can't quite figure out how to insert it into the larger query.
In the end, I want to know what individual was met by which staff member (by name, not ID number), what type of contact was had and when the contact was made.
Could anyone help with the SQL, please? It's definitely not my strong suit and I'm not sure whether to start with the table (inserting StaffID from its respective table) and zoom and insert the SQL to point to the other query (wherein I'm looking up the names based on the StaffIDs).
Thanks for your help!
I know I'm simply not having any luck writing the SQL statement to produce the results I'm looking for and I was hoping you could help!
I have a query in which I am pulling up IndividualID, IndividualName, StaffID (which is actually the Individual ID, but is a foreign key in a separate table), TypeofContact and DateofContact.
What I want is for the StaffID to show me the names of staff, not their ID numbers. I wrote a query to do this, but can't quite figure out how to insert it into the larger query.
In the end, I want to know what individual was met by which staff member (by name, not ID number), what type of contact was had and when the contact was made.
Could anyone help with the SQL, please? It's definitely not my strong suit and I'm not sure whether to start with the table (inserting StaffID from its respective table) and zoom and insert the SQL to point to the other query (wherein I'm looking up the names based on the StaffIDs).
Thanks for your help!