DATABASE SYSTEMS
The Complete Book
DATABASE SYSTEMS
The Complete Book
Second Edition

Hector Garcia-Molina
Jeffrey D. Ullman
Jennifer Widom
Department of Com...
C
D
•

'l NOTICE
n This work is protected by U.S. copyright laws and is provided solely
for the use of college instructors...
Preface
This book covers the core of the material taught in the database sequence
at Stanford. The introductory course, CS...
vi

PREFACE

important new topics, including materialized views, and automatic selection of
indexes.
The new Chapter 9 is ...
PREFACE

vii

from other Web pages. The chapter concludes with a study of clustering, espe­
cially for massive datasets.
C...
viii

PREFACE

can be purchased at http://w w w .prenliall.com /goal. Instructors who want
to use the system in their clas...
PREFACE

ix

Man Cho A. So, Elizabeth Stinson, Qi Su, Ed Swierk, Catherine Tornabene,
Anders Uhl, Jonathan Ullman, Mayank ...
X

GOAL
Gradiance Online Accelerated Learning (GOAL) is Pearson’s premier online
homework and assessment system. GOAL is d...
A bout the A uthors
HECTOR GARCIA-MOLINA is the L. Bosack and S. Lerner Professor of Com­
puter Science and Electrical Eng...
Table o f Contents
1

T h e W orld s o f D a ta b a se S y ste m s

1.1

1.2

1.3
1.4

1
2

The Evolution of Database Syst...
TABLE OF CONTENTS

xiv

2.3

2.4

2.5

2.6
2.7

2.2.6 Relation In s ta n c e s ..............................................
TABLE OF CONTENTS

3.3

3.4

3.5

3.6

3.7

3.8
3.9

xv

3.2.3 Trivial Functional Dependencies ..............................
xvi

TABLE OF CONTENTS

4 H igh-L evel D a ta b a se M odels
125
4.1 The Entity/Relationship M o d e l.......................
TABLE OF CONTENTS

xvii

4.7.1 UML C la s s e s .............................................................................
TABLE OF CONTENTS

5.2

5.3

5.4

5.5
5.6

5.1.7 Exercises for Section 5 . 1 ................................................
TABLE OF CONTENTS

xix

6.2.4 Interpreting Multirelation Q u e r ie s ......................................262
6.2.5 Unio...
TABLE OF CONTENTS

7.3

7.4

7.5

7.6
7.7

7.2.1 Not-Null C onstraints.......................................................
TABLE OF C O N TEN TS

8.6
8.7
9

xxi

8.5.4 Automatic Creation of Materialized V iew s......................... 364
8.5.5...
xxii

TABLE OF CONTENTS

9.6

J D B C .......................................................................................
TABLE OF CONTENTS

xxiii

10.5 Operations on Object-Relational D a t a ............................................ 457
10...
xxiv

TABLE OF CONTENTS

11A XML S c h e m a ................................................................................
TABLE OF CONTENTS

xxv

12.5 References for Chapter 1 2 .....................................................................
xxvi

TABLE OF CONTENTS
13.6.5 Pinned Records and B lo c k s ..................................................600
13.6.6 ...
TABLE OF CONTENTS

14.4

14.5

14.6

14.7

14.8
14.9

xxvii

14.3.7 Linear Hash T ables......................................
xxviii

15.3

15.4

15.5

15.6

15.7

15.8

TABLE OF CONTENTS
15.2.1 One-Pass Algorithms for Tuple-at-a-Time Operations . ...
TABLE OF CONTENTS

xxix

15.8.2 Performance of Multipass, Sort-Based Algorithms . . . . 753
15.8.3 Multipass Hash-Based A ...
XXX

TABLE OF CONTENTS
16.6.1 Significance of Left and Right Join A rg u m e n ts ................815
16.6.2 Join T re e s...
TABLE OF CONTENTS

xxxi

17.5.1 The A rchive.................................................................................
xxxii

TABLE OF CONTENTS

18.7.3 Why the Tree Protocol W orks...............................................929
18.7.4 Exe...
TABLE OF CONTENTS

xxxiii

20 P a ra lle l a n d D is trib u te d D a ta b a se s
985
20.1 Parallel Algorithms on R e la t...
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Database system complete
Upcoming SlideShare
Loading in...5
×