Jump to content

Displaying duplicates within a column


QuePID

Recommended Posts

Hi,

 

I want to display the rows that contain duplicate values within a field of a specific table.

 

I am currently using the following query:

SELECT iknew.*, COUNT(*) FROM iknew GROUP BY Accession HAVING COUNT(*) > 1

 

The output of this query only shows one row per found duplicate not every row that contains duplicates (minimum of 2 rows per duplication).

 

How can I display every single row to which duplication occurs within the field?

Link to comment
https://forums.phpfreaks.com/topic/208560-displaying-duplicates-within-a-column/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.