P
Purnima Sharma
I have a master team list table which has two columns: PilotCode and
AgentName. The table has multiple instances of PilotCodes with the
AgentsName spelled differently e.g.
76AO Ana Ortiz
76AO Anna Ortiz
76AO Ann Ortiz
76AO Ana Ortiz
I have to create a link between two tables to pull out the AgentName .
PilotCode is the common field between two tables. How can I just include the
first occurrence of the AgentName based on the PilotCode. I used the
following Query but it captures all the values:
SELECT *
FROM TblLookup_Team_Agent_Pilot AS P1
WHERE (P1.PilotCode)=(SELECT MIN(PilotCode)
FROM TblLookup_Team_Agent_Pilot as P2
WHERE P2.PilotCode=P1.PilotCode);
Can someone help? Thanks a lot!
Purnima Sharma
AgentName. The table has multiple instances of PilotCodes with the
AgentsName spelled differently e.g.
76AO Ana Ortiz
76AO Anna Ortiz
76AO Ann Ortiz
76AO Ana Ortiz
I have to create a link between two tables to pull out the AgentName .
PilotCode is the common field between two tables. How can I just include the
first occurrence of the AgentName based on the PilotCode. I used the
following Query but it captures all the values:
SELECT *
FROM TblLookup_Team_Agent_Pilot AS P1
WHERE (P1.PilotCode)=(SELECT MIN(PilotCode)
FROM TblLookup_Team_Agent_Pilot as P2
WHERE P2.PilotCode=P1.PilotCode);
Can someone help? Thanks a lot!
Purnima Sharma