Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .

Example of a Relation
Basic Structure
Attribute Types
Relation Schema
Relation Instance
Relations are Unordered
Database
The customer customer Relation Relation
The depositor depositor Relation Relation
Keys
Keys (Cont.)
Foreign Keys
Query Languages
Relational Algebra
Select Operation ––Example Example
Project Operation ––Example Example
Union Operation ––Example Example
Set Difference Operation ––Example Example
Set Difference Operation
Cartesian--Product Operation Product Operation ––Example Example
Cartesian--Product Operation Product Operation
Composition of Operations
Rename Operation
Banking Example
Formal Definition
Set--Intersection Operation Intersection Operation
Set--Intersection Operation Intersection Operation ––Example Example
Natural--Join Operation Join Operation
Natural Join Operation ––Example Example
Division Operation ––Example Example
Assignment Operation
Extended Relational--Algebra
Algebra--Operations Operations
Generalized Projection
Aggregate Functions and Operations
Aggregate Functions (Cont.)
Modification of the Database
Deletion
Deletion Examples
Insertion
Insertion Examples
Updating
Update Examples
End of Chapter 2
Figure 2.3. The branch
Figure 2.6: The loan
Figure 2.7: The borrower
Figure 2.9
Loan number and the amount of the loan
Figure 2.11: Names of all customers who have either an account or an loan
have either an account or an loan
Customers with an account but no loan
Figure 2.13: Result of borrower
|X| loan loan
Figure 2.14
Figure 2.15
Figure 2.16
Largest account balance in the bank
Figure 2.18: Customers who live on the same street and in the same city as
same street and in the same city as Smith
Smith
Figure 2.19: Customers with both an account and a loan at the bank
account and a loan at the bank
Figure 2.20
Figure 2.21
Figure 2.22
Figure 2.23
Figure 2.24: The credit_info
Figure 2.25
Figure 2.28
Figure 2.29
Figure 2.31
Figure 2.32
Figure 2.33
0 of .
Results for:
P. 1
ch2

ch2

Ratings: (0)|Views: 101|Likes:

See more
See less

08/28/2011

pdf

text

original