I have 3 tables as
products TABLE
FIELDS: productid, catid,...
sales TABLE
FIELDS: trackid, productid,...
promotion TABLE
FIELDS: trackid, productid,...
Now I need something like
ProductID CatID TotalSales TotalPromotion
1 1 10 3
How can I achieve this?
Thanks for the help
Try this: