![]() |
Before Insert Trigger Problem
I am making a trigger to check the whether the branch number is equal to 1 or 2, if the value is 1, it will select a table
if the value is 2, it will select a table (different to option 1). I think the trigger should check whether the branchNo is 1, to do this i would like the trigger to check the foreign key of the order table which is called customerNo, it will then look at the customers branch using the foriegn key in the customer table which is the branchNo. I think I am having trouble with PL-SQL syntax or maybe this is another problem that I do not know of, please can you help me. Here is some code: :
Here is some code of the whole trigger: :
If someone can help me out that has some knowledge in this area, that would be nice. I have been searching the net, using examples and such, but I still cannot overcome the problem. |
| All times are GMT -5. The time now is 4:16 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC