Table Constraints
The tables I work with don't have a unique key per say but I am looking to add constraints to a table. The data does have a key that is used. Within that key, the table can have only one record with a column of officialindicator as 'Y' and one record with an activeindicator as 'Y'. It is possible to just have one record with both columns set to Y. The table can have many records with both columns being 'N'. Is there any way to add a constraint that limits the table to accepting data in this manner
Example