Viewing 2 posts - 1 through 2 (of 2 total)
--delete from folders_rel
where exists (select b.id
from folders_rel a with(nolock)
inner join folders_rel b with(nolock) on b.folder_id = a.folder_id
and b.polymorphic_id = a.polymorphic_id
and b.id > a.id
where b.id = folders_rel.id)
April 12, 2010 at 12:42 pm
#1150262
...
April 12, 2010 at 12:35 pm
#1150252