Last active
October 11, 2019 18:35
-
-
Save gsampath127/1caee384199232df7306a60b93d9d79e to your computer and use it in GitHub Desktop.
This file contains 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
WITH Result As | |
( | |
SELECT *, ROW_NUMBER() OVER(PARTITION BY [FirstName] ORDER BY [FirstName] ) | |
as RowNum FROM [dbo].[Employees] | |
) | |
SELECT * FROM RESULT where RowNum > 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment