Database systems concepts 4th edition phần 2

về mối quan hệ và tuple ở vị trí của bảng điều khoản và hàng. Một biến tuple là một biến là viết tắt của một tuple, nói cách khác, một biến tuple là một biến có tên miền là tập hợp của tất cả các tuples. Trong mối quan hệ tài khoản của hình , có bảy tuples. Hãy để các tuple t biến tham khảo tuple đầu tiên của mối quan hệ. Chúng tôi sử dụng các ký hiệu t [tài khoản số để biểu thị giá trị của t trên thuộc tính số tài khoản | Silberschatz-Korth-Sudarshan Database System Concepts Fourth Edition I. Data Models 3. Relational Model The McGraw-Hill Companies 2001 Structure of Relational Databases 81 account-number branch-name balance A-101 Downtown 500 A-215 Mianus 700 A-102 Perryridge 400 A-305 Round Hill 350 A-201 Brighton 900 A-222 Redwood 700 A-217 Brighton 750 Figure The account relation with unordered tuples. terms relation and tuple in place of the terms table and row. A tuple variable is a variable that stands for a tuple in other words a tuple variable is a variable whose domain is the set of all tuples. In the account relation of Figure there are seven tuples. Let the tuple variable t refer to the first tuple of the relation. We use the notation t account-number to denote the value of t on the account-number attribute. Thus t account-number A-101 and t branch-name Downtown . Alternatively we may write t 1 to denote the value of tuple t on the first attribute account-number t 2 to denote branch-name and so on. Since a relation is a set of tuples we use the mathematical notation of t e r to denote that tuple t is in relation r. The order in which tuples appear in a relation is irrelevant since a relation is a set of tuples. Thus whether the tuples of a relation are listed in sorted order as in Figure or are unsorted as in Figure does not matter the relations in the two figures above are the same since both contain the same set of tuples. We require that for all relations r the domains of all attributes of r be atomic. A domain is atomic if elements of the domain are considered to be indivisible units. For example the set of integers is an atomic domain but the set of all sets of integers is a nonatomic domain. The distinction is that we do not normally consider integers to have subparts but we consider sets of integers to have subparts namely the integers composing the set. The important issue is not what the domain itself is but rather how we use domain elements

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã 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.