469,592 Members | 2,022 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,592 developers. It's quick & easy.

Selecting(extracting) multiple values !

How do I extract out of a DB only those records that have values wich repeat themselves?
I need to select(extract) from a table only the records who has duplicates values!
How would the mysql select commands looks like?

Select * from Table where (e-mail appears more than once).

Thank you
Nov 28 '06 #1
1 1397
1,089 Expert 1GB
Expand|Select|Wrap|Line Numbers
  1. SELECT myField, COUNT(*) AS 'Num' FROM myTable GROUP BY myField HAVING Num>1;
Nov 28 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by areef.islam | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.