Home » SQL & PL/SQL » SQL & PL/SQL » Write a trigger - help
Write a trigger - help [message #604752] Fri, 03 January 2014 13:59 Go to next message
changshui
Messages: 1
Registered: January 2014
Junior Member
I have two tables, patient and exam; the new data in exam.dose needs to be added to an accumulator in patient.cummulativedose as new.cummulativedose = old.cummulativedose + exam.dose. Patient and Exam tables can be jointed by a third one: patient.x = third.x and third.y = exam.y;

How can I write a trigger to do this? I am new to database admin. Your help is greatly appreciated.

Re: Write a trigger - help [message #604756 is a reply to message #604752] Fri, 03 January 2014 14:51 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
Please read and follow the forum guidelines, to enable us to help you:

http://www.orafaq.com/forum/t/88153/0/
Re: Write a trigger - help [message #604757 is a reply to message #604752] Fri, 03 January 2014 14:58 Go to previous message
Michel Cadot
Messages: 68645
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

PL/SQL User's Guide and Reference
Application Developer's Guide - Fundamentals

Previous Topic: rownum problem
Next Topic: SQL query help
Goto Forum:
  


Current Time: Fri Apr 26 11:46:45 CDT 2024