sql - Finding One record from table having unique PK and duplicate FK -
i want 1 record table having unique primary key , duplicate foreign key
please see attached image below
alt text http://img413.imageshack.us/img413/9940/findduplicate.png
thanks
select fk, count(*) table1 group fk having count(*) > 1
Comments
Post a Comment