Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / General DB Topics / DB Theory / January 2008

Tip: Looking for answers? Try searching our database.

Creating indexes on views/BCNF

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
aehchua@ntu.edu.sg - 15 Jan 2008 00:38 GMT
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
Evan Keel - 15 Jan 2008 02:31 GMT
This may help. Although indexed views are hard to think about.

http://msdn2.microsoft.com/en-us/library/aa214336(SQL.80).aspx

Evan
> Is there a commercial RDBMS that allows one to create indices on
> views?
[quoted text clipped - 24 lines]
>
> Cecil Chua
TroyK - 16 Jan 2008 20:06 GMT
On Jan 14, 5:38 pm, aehc...@ntu.edu.sg wrote:
> Is there a commercial RDBMS that allows one to create indices on
> views?
[quoted text clipped - 24 lines]
>
> Cecil Chua

Hi Cecil;

Please forgive the self-promotion, but my article here:
http://www.sqlservercentral.com/articles/Data+Modeling/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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.