Table 1 : Category
CID (PK)
CNAME
Table 2 : Product
PID (PK)
CID (FK)
PNAME
Table 3 : Price
ID (PK)
PID (FK)
Price
I have to sum of price and display CNAME,PNAME and Total of Price
Output:
CNAME PNAME Total
Category1 Product1 500 (Sum of Total Related with PID (FK)).

Abhishek YadavRank #535 · 4.5K reputationPosted Dec 17, 2016, 2:23 AM EST
Ananth GRank #1,176 · 1.5K reputationPosted Dec 17, 2016, 1:40 AM EST