Thursday, October 8, 2009

SQL-finding duplicate row in table

The querry is

select userid from table group by userid having (count(*)>1) or
select userid from table group by userid having (count(userid)>1)

No comments:

Post a Comment