dbTalk Databases Forums  

Creating indexes on views/BCNF

comp.databases.theory comp.databases.theory


Discuss Creating indexes on views/BCNF in the comp.databases.theory forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
TroyK
 
Posts: n/a

Default Re: Creating indexes on views/BCNF - 01-16-2008 , 02:06 PM






On Jan 14, 5:38*pm, aehc... (AT) ntu (DOT) edu.sg wrote:
Quote:
Is there a commercial RDBMS that allows one to create indices on
views?

I'm asking this partly because of BCNF.

A typical BCNF problem is (where -> is a FD)

A, B->C
C -> B

which becomes the following relations

R_1 [_A_, _C_]
R_2 [_C_, B]

where _X_ denotes an attribute in the primary key

since
R [_A_,_C_,B] is not in 2NF

But there's an additional constraint where the equijoin of R_1 and
R_2
on C would have the candidate key A,B.

Is there a way to express this last constraint (i.e., a candidate key
on a view) in an implementation system?

Cecil Chua
Hi Cecil;

Please forgive the self-promotion, but my article here:
http://www.sqlservercentral.com/arti...odeling/61529/
is the 4th in a series of 5 articles on db design. It shows,
specifically, how to implementa a multi-relvar constraint using an
indexed view on MS SQL Server. I think there exists an analogous
facility in Oracle, but I'm not sure about other DBMSs (such as
MySQL).

TroyK


Reply With Quote
  #12  
Old   
TroyK
 
Posts: n/a

Default Re: Creating indexes on views/BCNF - 01-16-2008 , 02:06 PM






On Jan 14, 5:38*pm, aehc... (AT) ntu (DOT) edu.sg wrote:
Quote:
Is there a commercial RDBMS that allows one to create indices on
views?

I'm asking this partly because of BCNF.

A typical BCNF problem is (where -> is a FD)

A, B->C
C -> B

which becomes the following relations

R_1 [_A_, _C_]
R_2 [_C_, B]

where _X_ denotes an attribute in the primary key

since
R [_A_,_C_,B] is not in 2NF

But there's an additional constraint where the equijoin of R_1 and
R_2
on C would have the candidate key A,B.

Is there a way to express this last constraint (i.e., a candidate key
on a view) in an implementation system?

Cecil Chua
Hi Cecil;

Please forgive the self-promotion, but my article here:
http://www.sqlservercentral.com/arti...odeling/61529/
is the 4th in a series of 5 articles on db design. It shows,
specifically, how to implementa a multi-relvar constraint using an
indexed view on MS SQL Server. I think there exists an analogous
facility in Oracle, but I'm not sure about other DBMSs (such as
MySQL).

TroyK


Reply With Quote
  #13  
Old   
TroyK
 
Posts: n/a

Default Re: Creating indexes on views/BCNF - 01-16-2008 , 02:06 PM



On Jan 14, 5:38*pm, aehc... (AT) ntu (DOT) edu.sg wrote:
Quote:
Is there a commercial RDBMS that allows one to create indices on
views?

I'm asking this partly because of BCNF.

A typical BCNF problem is (where -> is a FD)

A, B->C
C -> B

which becomes the following relations

R_1 [_A_, _C_]
R_2 [_C_, B]

where _X_ denotes an attribute in the primary key

since
R [_A_,_C_,B] is not in 2NF

But there's an additional constraint where the equijoin of R_1 and
R_2
on C would have the candidate key A,B.

Is there a way to express this last constraint (i.e., a candidate key
on a view) in an implementation system?

Cecil Chua
Hi Cecil;

Please forgive the self-promotion, but my article here:
http://www.sqlservercentral.com/arti...odeling/61529/
is the 4th in a series of 5 articles on db design. It shows,
specifically, how to implementa a multi-relvar constraint using an
indexed view on MS SQL Server. I think there exists an analogous
facility in Oracle, but I'm not sure about other DBMSs (such as
MySQL).

TroyK


Reply With Quote
  #14  
Old   
TroyK
 
Posts: n/a

Default Re: Creating indexes on views/BCNF - 01-16-2008 , 02:06 PM



On Jan 14, 5:38*pm, aehc... (AT) ntu (DOT) edu.sg wrote:
Quote:
Is there a commercial RDBMS that allows one to create indices on
views?

I'm asking this partly because of BCNF.

A typical BCNF problem is (where -> is a FD)

A, B->C
C -> B

which becomes the following relations

R_1 [_A_, _C_]
R_2 [_C_, B]

where _X_ denotes an attribute in the primary key

since
R [_A_,_C_,B] is not in 2NF

But there's an additional constraint where the equijoin of R_1 and
R_2
on C would have the candidate key A,B.

Is there a way to express this last constraint (i.e., a candidate key
on a view) in an implementation system?

Cecil Chua
Hi Cecil;

Please forgive the self-promotion, but my article here:
http://www.sqlservercentral.com/arti...odeling/61529/
is the 4th in a series of 5 articles on db design. It shows,
specifically, how to implementa a multi-relvar constraint using an
indexed view on MS SQL Server. I think there exists an analogous
facility in Oracle, but I'm not sure about other DBMSs (such as
MySQL).

TroyK


Reply With Quote
  #15  
Old   
TroyK
 
Posts: n/a

Default Re: Creating indexes on views/BCNF - 01-16-2008 , 02:06 PM



On Jan 14, 5:38*pm, aehc... (AT) ntu (DOT) edu.sg wrote:
Quote:
Is there a commercial RDBMS that allows one to create indices on
views?

I'm asking this partly because of BCNF.

A typical BCNF problem is (where -> is a FD)

A, B->C
C -> B

which becomes the following relations

R_1 [_A_, _C_]
R_2 [_C_, B]

where _X_ denotes an attribute in the primary key

since
R [_A_,_C_,B] is not in 2NF

But there's an additional constraint where the equijoin of R_1 and
R_2
on C would have the candidate key A,B.

Is there a way to express this last constraint (i.e., a candidate key
on a view) in an implementation system?

Cecil Chua
Hi Cecil;

Please forgive the self-promotion, but my article here:
http://www.sqlservercentral.com/arti...odeling/61529/
is the 4th in a series of 5 articles on db design. It shows,
specifically, how to implementa a multi-relvar constraint using an
indexed view on MS SQL Server. I think there exists an analogous
facility in Oracle, but I'm not sure about other DBMSs (such as
MySQL).

TroyK


Reply With Quote
  #16  
Old   
TroyK
 
Posts: n/a

Default Re: Creating indexes on views/BCNF - 01-16-2008 , 02:06 PM



On Jan 14, 5:38*pm, aehc... (AT) ntu (DOT) edu.sg wrote:
Quote:
Is there a commercial RDBMS that allows one to create indices on
views?

I'm asking this partly because of BCNF.

A typical BCNF problem is (where -> is a FD)

A, B->C
C -> B

which becomes the following relations

R_1 [_A_, _C_]
R_2 [_C_, B]

where _X_ denotes an attribute in the primary key

since
R [_A_,_C_,B] is not in 2NF

But there's an additional constraint where the equijoin of R_1 and
R_2
on C would have the candidate key A,B.

Is there a way to express this last constraint (i.e., a candidate key
on a view) in an implementation system?

Cecil Chua
Hi Cecil;

Please forgive the self-promotion, but my article here:
http://www.sqlservercentral.com/arti...odeling/61529/
is the 4th in a series of 5 articles on db design. It shows,
specifically, how to implementa a multi-relvar constraint using an
indexed view on MS SQL Server. I think there exists an analogous
facility in Oracle, but I'm not sure about other DBMSs (such as
MySQL).

TroyK


Reply With Quote
  #17  
Old   
TroyK
 
Posts: n/a

Default Re: Creating indexes on views/BCNF - 01-16-2008 , 02:06 PM



On Jan 14, 5:38*pm, aehc... (AT) ntu (DOT) edu.sg wrote:
Quote:
Is there a commercial RDBMS that allows one to create indices on
views?

I'm asking this partly because of BCNF.

A typical BCNF problem is (where -> is a FD)

A, B->C
C -> B

which becomes the following relations

R_1 [_A_, _C_]
R_2 [_C_, B]

where _X_ denotes an attribute in the primary key

since
R [_A_,_C_,B] is not in 2NF

But there's an additional constraint where the equijoin of R_1 and
R_2
on C would have the candidate key A,B.

Is there a way to express this last constraint (i.e., a candidate key
on a view) in an implementation system?

Cecil Chua
Hi Cecil;

Please forgive the self-promotion, but my article here:
http://www.sqlservercentral.com/arti...odeling/61529/
is the 4th in a series of 5 articles on db design. It shows,
specifically, how to implementa a multi-relvar constraint using an
indexed view on MS SQL Server. I think there exists an analogous
facility in Oracle, but I'm not sure about other DBMSs (such as
MySQL).

TroyK


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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.