|
Posted by --CELKO-- on 02/02/06 01:07
>> When do you prefer a VIEW? <<
1) For access control. A particular development team sees the schema
thru VIEWs that make it look as if the database was built just for
their project. This can mean some WITH CHECK OPTION clauses and
INSTEAD OF triggers.
2) When the same query is used by multiple users at the same time. For
example, Oracle will mateiralize and share a VIEW, so everyone can use
the same "end of the month" summary results without re-computing them
over and over.
3) When the same query is used in multiple places in a single query.
Now that we have CTEs, this does not apply anymore.
Navigation:
[Reply to this message]
|