472,096 Members | 1,162 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,096 software developers and data experts.

Selecting(extracting) multiple values !

Hello
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
Marius
Nov 28 '06 #1
1 1431
miller
1,089 Expert 1GB
Expand|Select|Wrap|Line Numbers
  1. SELECT myField, COUNT(*) AS 'Num' FROM myTable GROUP BY myField HAVING Num>1;
  2.  
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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.