If Memo = 'C' then charge should be Commission * Rate
ELSE it should be 0.
I thought I can do the following…
Code:
SELECT Customer, Commission, Fee, IIF(Memo='C',(Commission*Rate),0) as CommissionCharge, IIF(Memo2='C',(Fee*Rate),0) as CommissionFee FROM Customer_Charge;
Leave a comment: