Databases Reference
In-Depth Information
Figure 3-9
left
pointer
data
pointer
key
value
51247
right
pointer
B-Tree
Index
left
pointer
data
pointer
key
value
31123
right
pointer
left
pointer
data
pointer
key
value
right
pointer
null
82928
left
pointer
data
pointer
key
value
21043
right
pointer
left
pointer
data
pointer
key
value
47374
right
pointer
left
pointer
data
pointer
key
value
92654
right
pointer
null
null
null
null
null
null
Data File
B-tree index.
FOR EXAMPLE
Entities, Attributes, and Objects
Suppose that you are creating a database for a private golf course. It includes
full members who have access to all facilities and limited members who are
allowed on the course and in the Pro Shop only. The Pro Shop keeps a small
inventory of items available for purchase and also keeps track of tee time
reservations and golf carts.
There are several entities that should come to mind immediately, such
as members, employees, inventory, and golf carts. These are all tangible enti-
ties. What about intangible entities? One already mentioned is tee times, and
others will probably come to mind as you think about activities around a
golf course and private clubhouse.
However, some decisions might not be as obvious as they would seem at
first glance. For example, how many tables will you need to track the member
entity? Should full and limited members be tracked in the same table or do you
need separate tables? This points out the need for gathering as much informa-
tion as possible before you make modeling decisions. Right now, you probably
don't know enough about the data requirements to make that decision, so you
need to go back to your human data sources and ask more questions.
Search WWH ::




Custom Search