Answers for "select all the rows with the same value of a row sql"

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
)
Posted by: Guest on June-10-2021
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
Posted by: Guest on June-10-2021

Code answers related to "select all the rows with the same value of a row sql"

Browse Popular Code Answers by Language