-7056: Subquery not allowed 

Explanation:

A <SUBQUERY> specification in a <CONSTRAINT DEFINITION> is not allowed.

User Action:

  1. The attempt can be made to formulate the <SEARCH CONDITION> in such a way that the <SUBQUERY> is not necessary.
  2. The attempt can be made to achieve the desired effect by defining a trigger that checks the condition.