TÓM TẮT Hệ quản trị cơ sở dữ liệu cung cấp một ngôn ngữ cơ sở dữ liệu cho phép làm việc với mô hình cơ sở dữ liệu mà nó hỗ trợ; Hệ quản trị cơ sở dữ liệu quan hệ cung cấp một ngôn ngữ cơ sở dữ liệu gọi là Structured Query Language (SQL); SQL có 4 bộ ngôn ngữ con: ngôn ngữ con định nghĩa dữ liệu, ngôn ngữ con thao tác dữ liệu, ngôn ngữ h...
134 trang | Chia sẻ: vutrong32 | Ngày: 19/10/2018 | Lượt xem: 1376 | Lượt tải: 1
PHÂN LOẠI HỆ QTCSDL-PT l Theo Bochmann, các loại hệ xử lý phân tán có thể phân loại dựa theo các tiêu chuẩn : Độ kết dính : (degree of coupling)là số đo mức độ nối kết chặt chẽ giữa các phần tử được xử lý, được tính bằng tỷ số giữa lượng dữ liệu trao đổi với lượng xử lý tại chỗ, được thực hiện trọng việc hoàn thành 1 giao tác Cấu trúc nối kế...
23 trang | Chia sẻ: vutrong32 | Ngày: 19/10/2018 | Lượt xem: 1899 | Lượt tải: 0
20.4 Page Replacement Policies Least-recently used policy: effective, but hard to implement Approximate versions of LRU are more easily implemented Clock policy: diagram below shows the reason for name Use bit is set to 1 whenever a page is accessed
68 trang | Chia sẻ: vutrong32 | Ngày: 19/10/2018 | Lượt xem: 1484 | Lượt tải: 0
Exceptions present the same problems as branches How to handle instructions that are ahead in the pipeline? (let them run to completion and retirement of their results) What to do with instructions after the exception point? (flush them out so that they do not affect the state) Precise versus imprecise exceptions Precise exceptions hide ...
72 trang | Chia sẻ: vutrong32 | Ngày: 19/10/2018 | Lượt xem: 1449 | Lượt tải: 0
Domain-Key Normal Form (DKNF): Defintion:A relation schema is said to be in DKNF if all constraints and dependencies that should hold on the valid relation states can be enforced simply by enforcing the domain constraints and key constraints on the relation. The idea is to specify (theoretically, at least) the “ultimate normal form” that ...
43 trang | Chia sẻ: vutrong32 | Ngày: 19/10/2018 | Lượt xem: 1352 | Lượt tải: 0
Achieving the BCNF by Decomposition (2) Three possible decompositions for relation TEACH 1. {student, instructor} and {student, course} 2. {course, instructor } and {course, student} 3. {instructor, course } and {instructor, student} All three decompositions will lose fd1. We have to settle for sacrificing the functional dependency preser...
49 trang | Chia sẻ: vutrong32 | Ngày: 19/10/2018 | Lượt xem: 1553 | Lượt tải: 0
Summary (continued) A database may be accessed via an interactive database Most often, however, data in a database is manipulate via application programs Several methods of database programming: – embedded SQL – dynamic SQL – stored procedure and function
45 trang | Chia sẻ: vutrong32 | Ngày: 19/10/2018 | Lượt xem: 1301 | Lượt tải: 0
UPDATE Used to modify attribute values of one or more selected tuples A WHERE-clause selects the tuples to be modified An additional SET-clause specifies the attributes to be modified and their new values Each command modifies tuples in the same relation Referential integrity should be enforced
71 trang | Chia sẻ: vutrong32 | Ngày: 19/10/2018 | Lượt xem: 1599 | Lượt tải: 0
Step 9: Mapping of Union Types (Categories). – For mapping a category whose defining superclass have different keys, it is customary to specify a new key attribute, called a surrogate key, when creating a relation to correspond to the category. – In the example below we can create a relation OWNER to correspond to the OWNER category and incl...
32 trang | Chia sẻ: vutrong32 | Ngày: 19/10/2018 | Lượt xem: 1393 | Lượt tải: 0
QBE Examples Specifying complex cinditions in QBE: A technique called the “condition box” is used in QBE to state more involved Boolean expressions as conditions. The D.4(a) gives employees who work on either project 1 or 2, whereas the query in D.4(b) gives those who work on both the projects.
53 trang | Chia sẻ: vutrong32 | Ngày: 19/10/2018 | Lượt xem: 1673 | Lượt tải: 0