Bisa pakai bantuan rowid, karena rowid dipastikan berbeda utk setiap record.
update tabelku a set a.status=0 where a.rowid != (select min(b.rowid) from tabelku b where b.id = a.id); Index di kolom id akan membantu mempercepat update. regards, tomi --- Puguh Sugeng Putranto <[EMAIL PROTECTED]> wrote: > Hallo rekans, > Bagaimana SQL mengupdate data dari sekian banyak > data yang sama ? > Contoh : > Misal saya punya data : > > ID NAMA STATUS > 1 PUGUH 1 > 1 PUGUH 1 > 1 PUGUH 1 > > Hal yang saya ingin lakukan adalah ingin > mengupdate status data diatas menjadi 0 sehingga > hanya 1 data yang mempunyai STATUS = 1. -anggap > field ID adalah PK-. > Tolong pencerahannya.. > > Terima Kasih > > > > > Puguh Imutz __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- -----------I.N.D.O - O.R.A.C.L.E--------------- Keluar: [EMAIL PROTECTED] Website: http://indo-oracle.lizt.org (NEW) ----------------------------------------------- Bergabung dengan Indonesia Thin Client User Groups, Terminal Server, Citrix, New Moon Caneveral, di: http://indo-thin.vze.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/indo-oracle/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

