469,125 Members | 1,825 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,125 developers. It's quick & easy.

unique constraint when value = 1

I am hoping this is an easy question for someone!

For each row in a Oracle 9i table, I have 2 columns that need to be unique, but only when another column, is_root = 1. If that row is not a root, we don't care if the other 2 columns are unique. Is it possible to set a unique constraint for this case?
Jan 9 '07 #1
1 1168
168 100+
Please explain / state u'r question clearly .
Feb 7 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

26 posts views Thread by Agoston Bejo | last post: by
4 posts views Thread by Joăo Santa Bárbara | last post: by
7 posts views Thread by Brian Keating | last post: by
3 posts views Thread by Bruce Wood | last post: by
10 posts views Thread by Laurence | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.