I have a table (tblRoster) with the data on each person. I have another table (tblNickname) that has nicknames (some people have more than one nickname). I want a query that will give me all the names from tblRoster (no duplicates)with the nicknames. I did a LEFT JOIN and tried using DISTINCT but both ways if someone had more than one nickname they are listed twice.
Here are the queries I have tried:
SELECT tblRoster.ID,tblRoster.LName, tblRoster.FName, tblRoster.Address, tblNickname.Name FROM tblRoster LEFT JOIN tblNickname ON tblRoster.ID=tblNickname.ID
This gives me multiple entries for the same person.
SELECT DISTINCT tblRoster.ID,tblRoster.LName, tblRoster.FName, tblRoster.Address, tblNickname.Name FROM tblRoster LEFT JOIN tblNickname ON tblRoster.ID=tblNickname.ID
This gives me multiple entries for the same person.
SELECT DISTINCTROW tblRoster.ID,tblRoster.LName, tblRoster.FName, tblRoster.Address, tblNickname.Name FROM tblRoster LEFT JOIN tblNickname ON tblRoster.ID=tblNickname.ID
Any Ideas?
Here are the queries I have tried:
SELECT tblRoster.ID,tblRoster.LName, tblRoster.FName, tblRoster.Address, tblNickname.Name FROM tblRoster LEFT JOIN tblNickname ON tblRoster.ID=tblNickname.ID
This gives me multiple entries for the same person.
SELECT DISTINCT tblRoster.ID,tblRoster.LName, tblRoster.FName, tblRoster.Address, tblNickname.Name FROM tblRoster LEFT JOIN tblNickname ON tblRoster.ID=tblNickname.ID
This gives me multiple entries for the same person.
SELECT DISTINCTROW tblRoster.ID,tblRoster.LName, tblRoster.FName, tblRoster.Address, tblNickname.Name FROM tblRoster LEFT JOIN tblNickname ON tblRoster.ID=tblNickname.ID
Any Ideas?