TAILIEUCHUNG - Managing time in relational databases- P18

Tham khảo tài liệu 'managing time in relational databases- p18', 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ả | 326 Chapter 14 ALLEN RELATIONSHIP AND OTHER QUERIES The inverse of this relationship is P2 overlaps P1. In the superscripted relationship the first time period is the later one. The predicate for this relationship as it holds between two time periods expressed as pairs of dates using the closed-open convention is eff_beg_dt1 eff_beg_dt2 AND eff_beg_dt1 eff_end_dt2 AND eff_end_dt1 eff_end_dt2 It says that P1 starts after P2 starts and before P2 ends and ends after P2 ends. Consider the following request for information which policies began before the Diabetes Management Wellness Program for 2009 and ended while that program was still going on The SQL written to fulfill this request is SELECT FROM V_Allen_Example WHERE pol_eff_beg_dt wp_eff_beg_dt AND pol_epis_end_dt wp_eff_beg_dt AND pol_epis_end_dt wp_epis_end_dt P1 intersects P2 This not an Allen relationship. It is the node in our taxonomy of Allen relationships which includes the starts starts-1 finishes finishes-1 during during-1 equals overlaps and overlaps-1 relationships. In other words it combines the overlaps relationships with the fills relationships. In the non-superscripted relationship the first time period is the earlier one. The predicate for this relationship as it holds between two time periods expressed as pairs of dates using the closed-open convention is eff_beg_dt1 eff_beg_dt2 AND eff_end_dt1 eff_beg_dt2 It says that P1 starts no later than P2 starts and ends after P2 starts. The idea behind it is that it includes every relationship in which P1 and P2 have at least one clock tick in common and in which P1 is the earlier time period. The limiting case is that in which P1 ends at the same time P2 starts. So let P1 be 4 15 2010 - 5 13 2010 and let P2 be 5 12 2010 - 9 18 2010 . The clock tick they share is 5 12 2010. The inverse of this relationship is P1 intersects-1 P2. The first time period in this non-superscripted relationship is the later one. The predicate for this relationship as it holds .

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.