Can I query a list of cities?

S

Southern at Heart

my table [tbleName] has 500 records, of names, cities, etc. How do I make a
query that will give me a list of the cities, from the field [City], without
duplicates?
There will be lots of duplicates, but I just need a list of the cities
without any duplicates, (sorted if possible, too)
thanks,
Southern@Heart
 
A

Allen Browne

Use DISTINCT in the query, e.g.:
SELECT DISTINCT City FROM tbleName ORDER BY City;

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.

message
news:[email protected]...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top