In a [member] table, some rows have the same value for the email
column.
login_id | email
---------|---------------------
john | john123@hot
I know this is a very old question but this is more for someone else who might have the same problem and I think this is more accurate to what was wanted.
SELECT * FROM member WHERE email = (Select email From member Where login_id = john123@hotmail.com)
This will return all records that have john123@hotmail.com as a login_id value.
select email from mytable group by email having count(*) >1