Database DataWarehousing (MOSC)

MOSC Banner

Table Constraints

edited Nov 6, 2020 8:38PM in Database DataWarehousing (MOSC) 1 commentAnswered

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

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center