Dynamic Views
When you access a view, a query plan is constructed by combining the original SELECT statement that was used to create the view with the one you're using to query it. Normally, the selection criteria you specified when you built the view are combined with any specified by your query, and the composite is passed on to the server engine for further processing.
Most views that include selection criteria impose static (or deterministic) criteria—the selection logic that's combined with the SELECT statement accessing the view never changes, regardless of how many times the view is queried. The dynamic portion of the composite query usually comes from the user-supplied SELECT, not the view. With the exception of views that use joins to ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access