TAILIEUCHUNG - An Introduction to Database Systems 8Ed - C J Date - Solutions Manual Episode 1 Part 9

Tham khảo tài liệu 'an introduction to database systems 8ed - c j date - solutions manual episode 1 part 9', kỹ thuật - công nghệ, cơ khí - chế tạo máy phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | unknown and the constraint will not be regarded as violated. See Chapter 19 for further explanation. l. CREATE ASSERTION SQL_L CHECK NOT EXISTS SELECT FROM S WHERE London AND NOT EXISTS SELECT FROM SPJ WHERE AND P P2 m. CREATE ASSERTION SQL_M CHECK NOT EXISTS SELECT FROM P WHERE COLOR Red OR EXISTS SELECT FROM P WHERE COLOR Red AND WEIGHT n. CREATE ASSERTION SQL_N CHECK SELECT COUNT DISTINCT P FROM SPJ WHERE EXISTS SELECT FROM S WHERE AND London SELECT COUNT DISTINCT P FROM SPJ WHERE EXISTS SELECT FROM S WHERE AND Paris o. CREATE ASSERTION SQL_O CHECK SELECT SUM FROM SPJ WHERE SELECT FROM S WHERE London SELECT SUM FROM SPJ WHERE SELECT FROM S WHERE Paris Note the use of two scalar subqueries in this example. p. Can t be done directly SQL doesn t support transition constraints . We could write a trigger though. No further answer provided. q. Same as p. The answers are trivial syntactic variations on those already given for Exercises . No further answer provided. No. An important exception is predicates of the form illustrated by this example i is an integer. This is a membership predicate in fact it s the type constraint for the Copyright c 2003 C. J. Date page type INTEGER. Note If instead of treating INTEGER as a type we tried to define a relvar INTEGER to list all possible integers what type would the single attribute I of that relvar be At least for an ideal type INTEGER we ignore the fact that no real computer system is capable of directly representing all possible integers. Suppose we were to define a relvar SC S CITY with predicate Supplier S does not have an office in city CITY. Suppose further that supplier S1 has an office in just ten cities then the Closed World Assumption would imply that relvar SC must have N-10 tuples for supplier S1 where N is the total number of cities in the world End of

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.