Delphiwhat
Programmer
Hi all
I have a table (table X) which holds order numbers.
When a row is inserted into table X I go and find data in another table Y using the order number.
I need a trigger that....
If the data is found in table Y then nothing happens
else
If data is not found in table Y then the row (that was just inserted) in table x should be deleted.
Could anyone point me in the right directection on how to creat this trigger.
Thanks in advance
steve
I have a table (table X) which holds order numbers.
When a row is inserted into table X I go and find data in another table Y using the order number.
I need a trigger that....
If the data is found in table Y then nothing happens
else
If data is not found in table Y then the row (that was just inserted) in table x should be deleted.
Could anyone point me in the right directection on how to creat this trigger.
Thanks in advance
steve