Well friends, I have got this query which works but is very long for the execution. I was wondering whether there is a faster way to achieve this.
SELECT id, email FROM member WHERE email IN (SELECT email FROM member GROUP BY email HAVING count( * ) >1 ) ORDER BY `email` ASC
Basically, there are entries where the same email is appearing more than once, and I just wanted to have those rows returned where there is duplicate entries of email .
The above query works in that direction, but is painfully long.
Cheers.