So i have a function that returns saldo. It looks like this:
My trigger should call get_saldo and check that the amount of money being inserted in the withdraw table is not more than money on the account. My trigger looks like this so far:
Hope you guys understand what i mean. And i know what this forum thinks about stored procedures
but i really need to use it. Its a school task where we need to use stored procedures.