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

'SHOW ONE RECORD ONLY' QUERY

Status
Not open for further replies.

fsweb2002

Programmer
Apr 11, 2002
94
TR
Hi

I am really going blank today...

I have a query which shows many records, one of the fields (country_Code) being duplicated many times (all other fields are different though).

I need to create a report/query which will only show as many records as there are country_codes, without duplicates on the country_code.

Can anyone help ???

Thanks





 
SELECT DISTINCT col1, col2
from tables
order by col1 etc.

OR:

Don't worry about dups in the query. Using grouping in the report to show country header once, with pertinent records below.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top