Hi,
Database : Oracle 12.2
Database has a PLN_N_RNG table with structure as follows. Table is used to pre-define a set of range for plan number for the given product. In the example below, row#2 should not be allowed because it falls within the range of the first row. Is there an option to put a table level constraint to restrict this? Or should I check my next option which will be Triggers?
PLN_RNG_ID (PK-Generated sequence)
| PRODUCT_ID
| PLN_FROM_RNGE
| PLN_TO_RNG
|
|---|
| 1 | 100 | 1 | 10 |
| 2 | 100 | 2 | 9 |
Thanks,
Sunny