Jump to content

Returning duplicate entries


CanMan2004

Recommended Posts

Hi all

I want to perform a select * query within phpmyadmin which would return all records where the field 'name' has more than one record with that stored.

For example, my table is called 'people' and the field I want to query is 'name', a snippet of the data is;

id      name
--    ------
1      Dave
2      Edward
3      Sarah
4      Bill
5      Dave
6      Henry
7      Bill
8      Dave

and when I run the query it would return just the records

id      name
--    ------

4      Bill
7      Bill
1      Dave
5      Dave
8      Dave

as there is more than one record with the name 'bill' & 'dave'

Can this be done?

Thanks in advance

Dave
Link to comment
https://forums.phpfreaks.com/topic/27145-returning-duplicate-entries/
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.