Unix Technical Forum

Using FBI to enforce subsets of records to hold same values?

This is a discussion on Using FBI to enforce subsets of records to hold same values? within the Oracle Miscellaneous forums, part of the Oracle Database category; --> 9.2i, 10g, Windows, Linux. Is there a way to say that for table T (fields F1, F2, F3), that ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 01:09 PM
dean
 
Posts: n/a
Default Using FBI to enforce subsets of records to hold same values?

9.2i, 10g, Windows, Linux.


Is there a way to say that for table T (fields F1, F2, F3), that for
all distinct pairs F1, F2, the value of F3 must be the same? That is,
if there are N rows all with the same values of F1 and F2, that they
ALL hold the same value in F3? I appreciate the obvious way of doing
this with another table and a FK with F1 and F2 and a unique 3rd
column, but I'm not sure if there is a way to do this without the need
for a second table.

Thanks for any help.

Dean

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 01:09 PM
sybrandb
 
Posts: n/a
Default Re: Using FBI to enforce subsets of records to hold same values?

On Jul 2, 5:13 pm, dean <deanbrow...@yahoo.com> wrote:
> 9.2i, 10g, Windows, Linux.
>
> Is there a way to say that for table T (fields F1, F2, F3), that for
> all distinct pairs F1, F2, the value of F3 must be the same? That is,
> if there are N rows all with the same values of F1 and F2, that they
> ALL hold the same value in F3? I appreciate the obvious way of doing
> this with another table and a FK with F1 and F2 and a unique 3rd
> column, but I'm not sure if there is a way to do this without the need
> for a second table.
>
> Thanks for any help.
>
> Dean


Actually removing F3 from T and setting up another table with F1, F2,
F3 is the only solution which is relationally correct.

--
Sybrand Bakker
Senior Oracle DBA

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:29 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com