Code for Display total of each invoices in Oracle
Select invno, sum(qty_hand * itemprice) "Total Price" from item,invitem where item.itemno=invitem.itemno groupby invno;
Output:
INVNO Total Price
----- ------------
IN001 180000
IN002 1250
IN003 1100
IN004 30000
IN005 87500