Thread: how to find duplicates key

how to find duplicates key

From
Christian Valverde
Date:
how do i find a duplicate key so i can make a unique index

Re: how to find duplicates key

From
Heath Tanner
Date:
On Monday, September 15, 2003, at 04:01  PM, Christian Valverde wrote:

> how do i find a duplicate key so i can make a unique index

SELECT my_key, count(*) FROM my_table GROUP BY my_key HAVING count(*) >
1;

-heath