Urgent Please !Enforcing Unique Key Using a DataBase Trigger
299346Mar 14 2003 — edited Mar 14 2003Hello,
IS there a way to force the Unique Key Constraint using the Database trigger instead of creating a Unique Key. Because My Requirement is such that I have to Enforce Unqueness Based on Certain Condition.
For Example I have a Part_Numbers Table which has the following fields..
id (Primary key)
Part_type
Part_number
part_number_owner
in the above table For certain PArt_number_owners the Part_number can be Duplicate, but not for all.
Do you think this can be done in a Trigger?
Thanks