dbTalk Databases Forums  

self-join to delete dupes with a unique id

comp.databases.mysql comp.databases.mysql


Discuss self-join to delete dupes with a unique id in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jr
 
Posts: n/a

Default self-join to delete dupes with a unique id - 01-03-2011 , 04:29 PM






I don't know how to create a self join to delete.
I have a syntax error.
thanks,

delete FROM ci as a, ci as b
max(id)
where concat(a.bu, a.ndc)=concat(b.bu,b.ndc) ;

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.