Code for Example of natural join in Oracle
Select invno, sum(qty), sum(qty*itemprice) "Item Price" from invitem, item where invitem.itemno=item.itemno groupby invno;
Output:
INVNO SUM(QTY) Item Price
------ -------- -----------
IN001 20 9000
IN002 50 1250
IN003 25 250
IN004 45 18000
IN005 22 15400