coba begini :
Select a.nama, a.alamat
from PEGAWAI a
where not exists (select 1 from ACCOUNT B
where a.pgw_id = b.id ) ;
Semoga berhasil..
Regards,
Jimmy
Kris Lie <[EMAIL PROTECTED]> wrote:
hi,
g lg binggung.
g puya 2 tabel
PEGAWAI =>PGW_ID,NAMA,ALAMAT
ACCOUNT =>ID,PASS,PGW_ID,STATUS;
kedua tabel dihubungkan oleh field PGW_ID.
trus g ingin menampilkan di pop list, nama pegawai yang belum
memiliki account. kira2 query nya gimana yah?
g coba dengan query :
SELECT A.NAMA FROM PEGAWAI A,ACCOUNT B WHERE NOT (A.PGW_ID = B.PGW_ID);
tapi hasilnya ngaco. pake cara non equijoin(<>) juga gagal.
please
--
-----------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
SPONSORED LINKS
Membership database software Database mortgage software Pda database software
Database management software Oracle database administration Oracle database
management
---------------------------------
YAHOO! GROUPS LINKS
Visit your group "indo-oracle" on the web.
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
---------------------------------
Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort.
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/PhFolB/TM
--------------------------------------------------------------------~->
--
-----------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/