Join | Login | Why Join?   
SQL Server, Oracle, DB2, Sybase, MySQL Help - SSWUG.ORG HACKER SAFE certified sites prevent over 99.9% of hacker crime.
Search SSWUG:   
 
Access to 501 free guest articles, discussions and more, just create your free SSWUG User ID:
Email address:  
This will be your login ID - we'll email you your password - you'll even receive the newsletter, opt-out at any time.
Email to Friend //  Discuss Article //  Rate Article //  Digg Article //  Add to Del.icio.us //  Add to Technorati

Full site membership is required for this article. Already a full member? Login here.
You currently have a guest membership. You can upgrade to full site membership here (free trial available).

Maintaining Referential Integrity Constraints for Only Specific Rows by Using Materialized Views


 Article Abstract:

(Yuli Vasiliev) Typically, materialized views are used to improve query performance or provide replicated data. However, you may use them to maintain referential integrity constraints on tables for only specific rows. In the following example, we define a referential integrity constraint only for those rows in the account_details table that are associated with the accounts stored in the accounts table that expire in 2004 or later. To achieve this functionality, we, in fact, define a foreign key on a materialized view that queries only the necessary rows from the account_details table.

 Read this article...

 Related Articles - For Members.
All Articles By Author

View it now! - Part II: Banishing view timeouts by implementing user materialized views
Using Check Constraints to Simulate Domains
Tuning Materialized Views in Oracle Database 10g by Using the DBMS_ADVISOR.TUNE_MVIEW Procedure
Tips for using views in SQL Server 2005
Tips for using SQL Server 2005 constraints (Part 1)
SQL Server Views Optimization Tips
Code Fast, Run Fast with XML Data Binding
SQL Server Constraints Optimization Tips
Using Microsoft SQL Server Constraints
Comparing DB2 materialized query tables and Oracle materialized views



Key (Please note):
(R) - registration may be required for access at the target site
($) - target site may require paid membership for access to this or other content


No Comments/Feedback Posted Yet. Post Your Comments/Feedback

Email to Friend //  Discuss Article //  Rate Article //  Digg Article //  Add to Del.icio.us //  Add to Technorati

   




 

[ Register ] [ Webcasts ] [ Podcasts ] [ Newsletter Archive ] [ RSS/Feeds ]
[ About ] [ Advertise ] [ Contact ] [ Privacy ] [ Terms of Service ]
[ Link to SSWUG ] [ List Server Archives ] [ Recent Orig. Content ]
(c) 1997-2008, Bits on the Wire, Inc.  (0)

Some names and products covered by SSWUG are the registered trademarks of their respective owners.
DAA10354WWW004