Finding duplicate values in a SQL table

SELECT * FROM
    (
    SELECT Id, Name, Age, Comments, Row_Number() OVER(PARTITION BY Name,Age ORDER By Name)As Rank FROM Customers
    )AS B WHERE Rank>1

Comments

Popular posts from this blog

Executing PowerShell scripts from C#

HOW TO Use the NumericUpDown Control

Exposing Agile Software Development Myths