select rows with same value in a column
select * from table where email in (
select email from table
group by email having count(*) > 1
)
select rows with same value in a column
select * from table where email in (
select email from table
group by email having count(*) > 1
)
select rows with same value in a column
SELECT email,
count(*) AS c
FROM TABLE
GROUP BY email
HAVING c > 1
ORDER BY c DESC
select all same column value in sql
SELECT RollId, count(*) AS c FROM `tblstudents` GROUP BY RollId HAVING c > 1 ORDER BY c DESC
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us