L
lmv
I need to select distinct on the fulladdress and I can't remember how to do it.
I only want 1 of each distinct address in my list.
help PLEASE! ;}
SELECT tblArea.AreaName, [Name List].MapCoord, [street number] & " " &
[street name] AS fulladdress, tblCity.City, tblCity.State, [Name List].ZipCode
FROM (TerritoryNumbers LEFT JOIN tblArea ON TerritoryNumbers.Area =
tblArea.AreaID) RIGHT JOIN (tblCity INNER JOIN [Name List] ON tblCity.CityID
= [Name List].City) ON TerritoryNumbers.TID = [Name List].TID
WHERE ((([Name List].TID) Like [What TID?]) AND (([Name
List].Status)="Active" Or ([Name List].Status)="Do Not Call" Or ([Name
List].Status)="Pending"))
ORDER BY [Name List].MapCoord;
I only want 1 of each distinct address in my list.
help PLEASE! ;}
SELECT tblArea.AreaName, [Name List].MapCoord, [street number] & " " &
[street name] AS fulladdress, tblCity.City, tblCity.State, [Name List].ZipCode
FROM (TerritoryNumbers LEFT JOIN tblArea ON TerritoryNumbers.Area =
tblArea.AreaID) RIGHT JOIN (tblCity INNER JOIN [Name List] ON tblCity.CityID
= [Name List].City) ON TerritoryNumbers.TID = [Name List].TID
WHERE ((([Name List].TID) Like [What TID?]) AND (([Name
List].Status)="Active" Or ([Name List].Status)="Do Not Call" Or ([Name
List].Status)="Pending"))
ORDER BY [Name List].MapCoord;