Answers for "select rows with same id but different value in another column in 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
0

sql select rows with different values in one column

SELECT *
FROM YourTable
WHERE ARIDNR IN (
    SELECT ARIDNR
    FROM YourTable
    GROUP BY ARIDNR
    HAVING COUNT(*) > 1
)
Posted by: Guest on June-17-2020

Code answers related to "select rows with same id but different value in another column in sql"

Browse Popular Code Answers by Language