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!

duplicate data

Status
Not open for further replies.

carli

Programmer
Jul 10, 2000
1
US
Do you know how to query duplicate data in the same table and collumn? I have a table with a collumn named URL and I want to find if a user put in the same URL for a different item. Any suggestions?
 
This is one way: -<br>SELECT a.url, a.item<br>FROM urltable a<br>WHERE exists (<br>SELECT *<br>FROM urltable b<br>WHERE a.url = b.url<br>AND a.item != b.item);<br><br> <p>Ged Jones<br><a href=mailto:gedejones@hotmail.com>gedejones@hotmail.com</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top