Created
December 12, 2017 11:39
-
-
Save dclarke-modus/45adfea41b0354f470d5ddd956a5a5f9 to your computer and use it in GitHub Desktop.
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
Table Students | |
id, name | |
1, Dean | |
2, Dean | |
3, Shahib |
select name, count(name) as count
group by name
having count > 1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Write a query that only display the duplicate row and how many times it's duplicated. Example:
name, count
Dean, 2