Dear All,
this is my table1-booking
bid booking_id product_name quantity amount
1 100 shirt 10 1500
2 101 tie 10 3200
3 102 pant 10 2900
4 102 pant 10 2900
table2-payment
pid booking_id paid_amt
1 100 450
2 102 250
3 100 260
4 100 140
How to show sum of paid amount in while loop while fetching the records…
i tried sum(payment.paid_amt) but i while loop it will calculate all paid amount sum not booking_id wise
kindly help me…
thanks,