View definition with a join  Views derived from other views

Chapter 11: Views: Limiting Access to Data

Views used with outer joins

If you define a view with an outer join, and then query the view with a qualification on a column from the inner table of the outer join, the query behaves as though the qualification were part of the WHERE clause of the view, not part of the ON clause of the outer join in the view. Thus the qualification operates only on rows AFTER the outer join is complete. For example, the qualification operates on NULL extended rows if the outer join condition is met, and eliminates rows accordingly.

The following rules determine what types of updates you can make to columns through join views:





Copyright © 2005. Sybase Inc. All rights reserved. Views derived from other views

View this book as PDF