consider the following table
Name Null? Type
----------------------------------------- -------- --------------
PRODID NUMBER
PRODNAME VARCHAR2(50)
Name Null? Type
----------------------------------------- -------- --------------
PRODID NUMBER
PROPID NUMBER
PRONAME VARCHAR2(100)
PROVALUE VARCHAR2(100)
The Sample data are as follows
select * from prodmas;
PRODID PRODNAME
---------- --------------
101 Surf
102 Ariel
select * from prodprop
/
PRODID PROPID PRONAME PROVALUE
------ ---------- -----------------------------------------------
101 1001 Price 100
101 1002 color Blue
101 1003 Agent AV
102 1001 Price 95
102 1002 Color Orange
.....
A Normal join query like this
select prodname,provalue
from prodmas pm
inner join prodprop pp
on pm.prodid = pp.prodid
/
PRODNAME PROVALUE
-------------------------------------------------- -----------
Surf 100
Surf Blue
Surf AV
Ariel 95
Ariel Orange
But the expected output should be like this
Surf 100 Blue AV
Ariel 95 Orange AV
.......
Hope iam clearer