Website chia sẻ tài liệu, ebook tham khảo cho các bạn học sinh, sinh viên
Con trỏ (tt) -Con trỏ được tạo bằng lệnh DECLARE. ðầu tiên con trỏ được khai báo và tạo ra trong bộ nhớ. Sau đó nó mới được mở. - Lệnh OPEN mở con trỏ. Việc nhận về các bản ghi từ một con trỏ được gọi là fetching. Một người dùng chỉ có thể nhận về một bản ghi tại một thời điểm. -Lệnh FETCH được sử dụng để đọc các bản ghi từ con trỏ. - Ngầm đ...
19 trang | Chia sẻ: vutrong32 | Ngày: 19/10/2018 | Lượt xem: 1062 | Lượt tải: 1
Câu hỏi - Phân biệt: thông tin (information), dữ liệu (data) và tri thức (knowlegde) - Transaction là gì? - Nếu không sao lưu dữ liệu thường xuyên thì gặp phải vấn ñề gì? - Một số database object trong SQL Server? Table, View, Store, Trigger, Index, User, (Cursor) - Một số action object trong SQL Server? Backup, Restore, Transaction, DTS,...
9 trang | Chia sẻ: vutrong32 | Ngày: 19/10/2018 | Lượt xem: 1044 | Lượt tải: 0
Ví dụ Case (tt) SACH (masach, tuasach, sotrang, matheloai, slton) Ví dụ 3: Tăng số trang của những sách thuộc thể loại Tin học thêm 10, câp số trang của những sách thuộc thể loại Toán học UPDATE sach SET sotrang=sotrang+ CASE WHEN matheloai=1 THEN 10 WHEN matheloai=4 THEN -10 ELSE 0 END
19 trang | Chia sẻ: vutrong32 | Ngày: 19/10/2018 | Lượt xem: 1383 | Lượt tải: 2
Một số hàm toán học ABS(N) CEILING(N) EXP(N) FLOOR(N) POWER(B, E) SQRT(N) ROUND(N) SQUARE(N)
22 trang | Chia sẻ: vutrong32 | Ngày: 19/10/2018 | Lượt xem: 1118 | Lượt tải: 1
- Giới thiệu và kiến trúc của HQTCSDL. Các kiến thức về CSDL (DBMS_01) - Quản lý truy xuất ñồng thời – Transaction (DBMS_02) - An toàn và khôi phục dữ liệu (Backup and Restore) (DBMS_03) -Cấu trúc lưu trữ và các phương thức truy xuất (DBMS_04) - Tối ưu hóa truy vấn (DBMS_05) -Hệ QTCSDL phân tán (DBMS_06)
2 trang | Chia sẻ: vutrong32 | Ngày: 19/10/2018 | Lượt xem: 904 | Lượt tải: 1
Pros and Cons of MAC Pros: Provide a high degree of protection – in a way of preventing any illegal flow of information. Suitable for military types of applications. Cons: Not easy to apply: require a strict classification of subjects and objects into security levels. Applicable for very few environments.
53 trang | Chia sẻ: vutrong32 | Ngày: 19/10/2018 | Lượt xem: 1054 | Lượt tải: 0
Semantic Query Optimization: Uses constraints specified on the database schema in order to modify one query into another query that is more efficient to execute. Consider the following SQL query, SELECT E.LNAME, M.LNAME FROM EMPLOYEE E M WHERE E.SUPERSSN=M.SSN AND E.SALARY>M.SALARY Explanation: Suppose that we had a constraint on the da...
28 trang | Chia sẻ: vutrong32 | Ngày: 19/10/2018 | Lượt xem: 959 | Lượt tải: 0
Indexes on Multiple Keys Ordered Index on Multiple Attributes Create a index on a search key field that is a combination of multiple attributes A lexicographic ordering of these tuple values establishes an order on this composite search key Partitioned Hashing For a key consisting of n components, the hash function is designed to produce a res...
37 trang | Chia sẻ: vutrong32 | Ngày: 19/10/2018 | Lượt xem: 1465 | Lượt tải: 0
BCNF (Boyce-Codd Normal Form) A relation schema R is in Boyce-Codd Normal Form (BCNF) if whenever an FD X -> A holds in R, then X is a superkey of R Each normal form is strictly stronger than the previous one Every 2NF relation is in 1NF Every 3NF relation is in 2NF Every BCNF relation is in 3NF There exist relations that are in 3NF but not ...
24 trang | Chia sẻ: vutrong32 | Ngày: 19/10/2018 | Lượt xem: 1169 | Lượt tải: 0
Minimal Sets of FDs (2) Every set of FDs has an equivalent minimal set There can be several equivalent minimal sets There is no simple algorithm for computing a minimal set of FDs that is equivalent to a set F of FDs To synthesize a set of relations, we assume that we start with a set of dependencies that is a minimal set (e.g., see algorithms ...
33 trang | Chia sẻ: vutrong32 | Ngày: 19/10/2018 | Lượt xem: 926 | Lượt tải: 0