Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Trigger to subtract from attribute in another table

611420Dec 1 2007 — edited Dec 1 2007
HI all, hope someone can help have been having trouble creating a trigger to subtract a value of a new tuple from a current value in another table.

Stock(name, stockqty)
Shipment(item, itemqty)

I want to have a trigger when insert a new tuple into shipment it takes the value of 'itemqty and subtracts it from stock.stockqty.

anyone have any ideas?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 29 2007
Added on Dec 1 2007
2 comments
530 views