i'm creating a database for school. This is the problem: i got a table with attributes A,B and C (where C=(A/(A+B))*100). On the update of attributes A or B i need to update C. I tried different things but the trigger keeps going into loop bacause when i update A or B the trigger updates C so it keeps going. This code doesn't work(sintax error):
Create trigger nametrigger
after update of (A or B) on tablename
But i somehow need to specify that the trigger has to activate on the update of A or B and not C.