Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trap 1 of each entry

Status
Not open for further replies.

ninash

Technical User
Jul 6, 2001
163
GB
Hi All,
I have a table that contains address information.
The address information has a country field which repeatedly contains duplicate information eg. many address's in Portugal, Spain and others

I need to be able to trap one of each country to leave me with a list for all countries in that table without any duplicates.

Is there anyone that can help me with this problem?

Regards
Tony
 
Hi

Somethink like:

SELECT Country FROM tblAddress GROUP BY Country; Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
UK
 
Thanks Ken

Don't you just hate it when you know the answer already and you just need to be clipped around the ear to make you feel stupid.

Again thank you very much for your quick reply

Tony
 
Hi

Yes, know that feeling Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top