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

Show only the first duplicate within query

Status
Not open for further replies.

hrg

Programmer
Jan 8, 2009
46
US
Hi

I have a query which i am running but it shows duplicate data. What i want is to be able to do is to write, type or code a command which will take ONLY 1 of every duplicate entry and show it in the database query. I already have tried the group by in a cobination of fields but it does not show the write amount of data.

Thank you for any help.
 
Hi,
Type DISTINCT after SELECT in you're SQL then only unique rows come up
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top