I've developed a trigger that runs for an UPDATE on table A. It simply calculates some information and updates table B when table A has an update.
It works fine if the update is on only 1 item in table A. However, if table A has multiple items that are updated, then the trigger returns an error:
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
The statement has been terminated.
After reviewing the query and subqueries, there are none that return multiple resuts, so I don't understand the error message. Any ideas why this has trouble? Does a Trigger behave in a certain manner when the update applies to multiple items?
Thanks in advance.
It works fine if the update is on only 1 item in table A. However, if table A has multiple items that are updated, then the trigger returns an error:
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
The statement has been terminated.
After reviewing the query and subqueries, there are none that return multiple resuts, so I don't understand the error message. Any ideas why this has trouble? Does a Trigger behave in a certain manner when the update applies to multiple items?
Thanks in advance.