SQL NOT TO COMMIT [message #620576] |
Mon, 04 August 2014 07:27 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
kilimanjaro
Messages: 151 Registered: May 2009 Location: Tanzania
|
Senior Member |
|
|
hello friends
I'm stack in a little problem here. I want the form not to commit if the budgeted amount is smaller than the spent amount .Here is the query which doesn't give me the results I want. Thank you.
begin
if :FAMILY_BUDGET2.ITEM10 > :FAMILY_BUDGET.BUDGETED_AMMOUNT
then message ('YOU HAVE EXCEEDED THE BUDGETED AMOUNT.THIS TRANSACTION WILL NOT BE CAPTURED');
--NOT to commit
END IF;
EXIT_FORM;
END;
|
|
|
|
|
|
|