A subquery specification in a CONSTRAINT definition is not allowed.
...
1. Try to reformulate the search condition so that the subquery can be omitted.
2. The attempt can be made to achieve the desired effect by defining a trigger that checks the condition.