Trying to Add up monthly values base on definition on which month belongs to which quarter (so definition can be update):
I'm trying to use ier join to achieve but failed:
SELECT qr, sum(price)
FROM Table1
INNER JOIN Table2
on Table1.mth = Table2.mth
INNER JOIN Table3
on Table2.qr = Table3.qr

