I'm having a lot of trouble with this one.
Here is my query:
This works great and returns the following:
Problem is I need to retrieve the LocationID along with it. So I would get something like this:
Is it possible to retrieve the LocationID that relates to each of the values returned?
Any help is appreciated.
Thanks,
-T
Here is my query:
Code:
SELECT DISTINCT(LOCATION) AS LOC FROM tblNetDesc
LEFT JOIN tblNetClass ON tblNetClass.NetClassID=tblNetDesc.NetClassID
LEFT JOIN tblLocation ON tblLocation.LocationID=tblNetClass.LocationID;
Code:
Lisanki Island
Pearl & Hermes Atoll
Kure Atoll
Midway Atoll
Code:
1 Lisanki Island
2 Pearl & Hermes Atoll
3 Kure Atoll
4 Midway Atoll
Any help is appreciated.
Thanks,
-T