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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query Question

Status
Not open for further replies.

axman505

Technical User
Jun 20, 2001
489
US
I have a database that has an auto incrementing id as primary key, along with address, city, state, etc.

I need a query to select city, state but only distinct ones. There may be duplicates, and a given city may exist in more than one state.

Is this doable?
 
that was not workign right before, ill give it another try.
 
only one distinct clause allowed per query

Bastien

Cat, the other other white meat
 
depedning on your data needs, perhaps a union might work

Bastien

Cat, the other other white meat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top