Hi, it's me again. :p
Basically one of my columns needs to be updated (monthly_fees) within my m_membership_type table. The monthly fee needs to rise by 10%.
I already have the code for this and it work as shown;
UPDATE M_MEMBERSHIP_TYPE SET MONTHLY_FEE = MONTHLY_FEE*1.1;
What I want is a statement that outputs the current monthly fee AND the updated monthly fee.
I found out that I need to use "return" to output updated results, but I cannot find any clear examples to aid me in my own scenario. As well as how to output the current monthly_fee.
In addition to this, I will also need to output columns from another table, but I want to leave this for after I get the update-return working.
Thanks.
Basically one of my columns needs to be updated (monthly_fees) within my m_membership_type table. The monthly fee needs to rise by 10%.
I already have the code for this and it work as shown;
UPDATE M_MEMBERSHIP_TYPE SET MONTHLY_FEE = MONTHLY_FEE*1.1;
What I want is a statement that outputs the current monthly fee AND the updated monthly fee.
I found out that I need to use "return" to output updated results, but I cannot find any clear examples to aid me in my own scenario. As well as how to output the current monthly_fee.
In addition to this, I will also need to output columns from another table, but I want to leave this for after I get the update-return working.
Thanks.