coba ini :

select a.prod_id1,(select b.prod_name from product b where b.prod_id =
a.prod_id1) as prod_name1,
       a.prod_id2,(select d.prod_name from product d where d.prod_id =
b.prod_id1) as prod_name2
from rule

> Teman-teman saya minta tolong yach...maaf karena saya termasuk newbie di
> Oracle.
> Masalahnya seperti ini.
> Ada dua tabel yaitu tabel RULE dan tabel PRODUCT.
> Pada tabel RULE terdapat field PROD_ID1 dan PROD_ID2 yang
> merupakan FOREIGN
> KEY untuk tabel PRODUCT dengan PROD_ID sebagai PRIMARY KEY. Tabel PRODUCT
> berisi detail dari product seperti PROD_NAME, PROD_CATEGORY dan
> lain-lainnya.
>
> Nah, saya bermaksud untuk menampilkan PROD_NAME untuk PROD_ID1
> dan PROD_ID2
> pada tabel RULE. Misal PROD_ID1=13 dan PROD_ID2=15. Kira-kira perintah
> SELECT nya seperti apa yach...
>
> Sebelumnya saya ucapkan terima kasih.



--
-----------I.N.D.O - O.R.A.C.L.E---------------
Keluar: [EMAIL PROTECTED]
Website: http://indo-oracle.blogspot.com
Mirror: http://indooracle.wordpress.com
-----------------------------------------------

Bergabung dengan Indonesia Thin Client User Groups, 
Terminal Server, Citrix, New Moon Caneveral, di:
http://indo-thin.blogspot.com 
Yahoo! 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:
    mailto:[EMAIL PROTECTED] 
    mailto:[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/
 



Kirim email ke