P
Purnima Sharma
I have a master team list with sales agents team codes and names. There are
multiple occurrences of same codes with names of agents spelled differently
in the master table e.g.
76AB Allison Burton
76AB Allison Borton
76AB allison burton
76AB Alison Borton
I have to create a join between two tables to pull the agent's names. The
code is the common field. I want to pull just the first occurnce of agent's
name. I used the following query:
SELECT *
FROM TblLookup_Team_Agent_Pilot as O1
where PilotCode =
(select min(PilotCode) from TblLookup_Team_Agent_Pilot as O2
where O2.PilotCode=O1.pilotCode) ;
It still captures alll the rows. Can someone help? Thanks a lot!
Purnima Sharma
multiple occurrences of same codes with names of agents spelled differently
in the master table e.g.
76AB Allison Burton
76AB Allison Borton
76AB allison burton
76AB Alison Borton
I have to create a join between two tables to pull the agent's names. The
code is the common field. I want to pull just the first occurnce of agent's
name. I used the following query:
SELECT *
FROM TblLookup_Team_Agent_Pilot as O1
where PilotCode =
(select min(PilotCode) from TblLookup_Team_Agent_Pilot as O2
where O2.PilotCode=O1.pilotCode) ;
It still captures alll the rows. Can someone help? Thanks a lot!
Purnima Sharma