Get Distinct records
select distinct name from user;
Get Repeated records
SELECT
name, email, COUNT(*)
FROM
user
GROUP BY
name, email
HAVING
COUNT(*) > 1
select distinct name from user;
Get Repeated records
SELECT
name, email, COUNT(*)
FROM
user
GROUP BY
name, email
HAVING
COUNT(*) > 1
No comments:
Post a Comment