I Have an order table in which i insert all the items that my customer placed in his order in single row.like
Table_ORDER
( Od_id
is primary key auto incrementd)
Od_Id Cust_Name Quantity of 101(int) Quantity of 102 Quantity of 103
----- ------- -------------------- --------------- --------------
1 John 5 4 7
2 Kim 4 3 2
Another Table of Price is like
Table_ Price
Prod_ID Price (money)
------- ------
101 5.2
102 2.5
103 3.5
Now I want to get the total amount of specific order placed by customer. Problem is that if i use differnt rows for different item that Order id will be changed and if i use single row then How I calculate the total price as i can put jst single Prod_ID colum.
Kindly Guide me and send some solutions
Regards