coba kalo begini. select customer_id from table_A a where not exists (select 1 from table_B where customer_id=a.customer_id)
2010/9/2 Yudho Adi Riyawan <[email protected]> > > > Dear master, > > Misal saya punya dua tabel A dengan jumlah record 1.000.000 dan tabel B > dengan jumlah 800.000 record, masing masing masing mempunyai kolom > customer_id. Yang mau saya tanyakan bagaimana query yang paling efisien > untuk mencari customer_id dari tabel A yang tidak ada di tabel B ? Saya > biasanya pakai MINUS atau NOT IN. > > Salam > > > -- Warm regards, Rudy Wardhany Yahoo ID: [email protected] [Non-text portions of this message have been removed] ------------------------------------ -- -----------I.N.D.O - O.R.A.C.L.E--------------- Keluar: [email protected] Website: http://indooracle.wordpress.com http://www.facebook.com/group.php?gid=51973053515 ----------------------------------------------- Bergabung dengan Indonesia Thin Client User Groups, Terminal Server, Citrix, New Moon Caneveral, di: http://indo-thin.blogspot.comYahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/indo-oracle/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/indo-oracle/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> 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/

