Created
May 4, 2020 03:34
-
-
Save monbang/b8fdd2924caf0a70a71c9041c8f65247 to your computer and use it in GitHub Desktop.
Duplicates in table
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://stackoverflow.com/a/2594855 | |
SELECT name, | |
reg_no, | |
CLASS, | |
SECTION, | |
count(*) | |
FROM cps_student | |
GROUP BY name, | |
reg_no | |
HAVING count(*) > 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment