Let's say I have a table called CAT
CAT has two columns ID and NAME
I forgot to add a unique constraint for these two columns.. and in my database I want to make sure I don't have any wrong entries before I add that constraint.
So I want a query to make sure every ID has unique values in the NAME column. How can I query for this?
 
    