TAILIEUCHUNG - Introduction to Database Systems- P3

Tham khảo tài liệu 'introduction to database systems- p3', công nghệ thông tin, cơ sở dữ liệu phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 74 Parti Preliminaries is modified by the system to become EM WHERE SALARY 33K EMPt ENAME SALARY WHERE SALARY 42K EMP SALARY we have italicized the view name inthe original expression and the replacement text in the modified version . The modified expression can then be simplified to just EMP WHERE SALARY 33K AND SALARY 42K EMP SALARY see Chapter 18 and this latter expression when evaluated yields the result shown earlier. In other words the original operation against the view is effectively converted into an equivalent operation against the underlying base relvar and that equivalent operation is then executed in the normal way more accurately optimized and executed in the normal way By way of another example consider the following DELETE operation DELETE TOPEMP WHERE SALARY 42K . The DELETE that is actually executed looks something like this DELETE EMP WHERE SALARY 33K AND SALARY 42K Now the view TOPEMP is very simple consisting as it does just of a row-and-column subset of a single underlying base relvar loosely speaking . In principle however a view definition since it is essentially just a named relational expression can be of arbitrary complexity it can even refer to other views . For example here is a view whose definition involves a join of two underlying base relvars . . . CREATE VIEW JOINEX AS EMP JOIN DEPT WHERE BUDGET 7M EMP DEPT We will return to the whole question of view definition and view processing in Chap- ter 10. . Incidentally we can now explain the remark in Chapter 2 near the end of Section to the effect that the term view has a rather specific meaning in relational contexts that is not identical to the meaning assigned to it in the ANSI SPARC architecture. At the external level of that architecture the database is perceived as an external view defined by an external schema and different users can have different external views . In relational systems by .

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.