i have a table A with columns ( A_ID, Main_Quantity, Sub_Quantity) and another table B with columns (B_ID, B_Name, B_ConversionRate)
now i want a query, so that the result i get is as follow
A_ID, sum(Main_quantity) + sum(Sub_quantity) / B_ConversionRate, sum(Sub_Quantity) - sum(Sub_Quantity)...