SELECT
a.*
FROM
users a
JOIN(
SELECT
username,
email,
COUNT(*)
FROM
users
GROUP BY
username,
HAVING
COUNT(*) > 1
) b
ON
a.username = b.username AND a.email = b.email
ORDER BY
a.email
=RANK(number,ref,[order]) To rank in descending order, we will use the formula =RANK(B2,($C$5:$C$10),0) If we want unique ranks, we can use...
No comments:
Post a Comment