Date, C.J. | Kannan, A | Swamynathan, S

An Introduction to database systems - 8th edn. - India; PEARSON, 2013. - xxxii,931p. includes index

Contents

Preface

Acknowledgments

PART 1 PRELIMINARIES 1

Chapter 1

An Overview of Database Management

1.1 Introduction

1.2 What Is a Database System?

1.3 What Is a Database? 11

1.4 Why Database? 16

1.5 Data Independence 21

1.6 Relational Systems and Others

1.7 Summary 25

Exercises

References and Bibliography

Chapter 2 Database System Architecture


2.1 Introduction 29

2.2 The Three Levels of the Architecture

2.3 The External Level

2.4 The Conceptual Level

2.5 The Internal Level

2.6 Mappings 37

2.7 The Database Administrator

2.8 The Database Management System

2.9 Client/Server Architecture

2.10 Utilities

2.11 Distributed Processing

2.12 Summary

Exercises References and Bibliography

Chapter 3 An Introduction to Relational Databases

3.1 Introduction 55

3.2 An Informal Look at the Relational Model 56

3.3 The Catalog 60

3.4 Base Tables and Views

3.5 Transactions 62

3,6 The Suppliers-and-Parts Database

3.7 Summary 65

Exercises 66

References and Bibliography

Chapter 4 An Introduction to SQL 69

4.1 Introduction 69

4.2 Overview 70

4.3 The Catalog 72

4.4 Views 73

4.5 Transactions 74

4.6 Embedded SQL 74

4.7 Dynamic SQL and SQL/CLI

81

4.8 SQL Is Not Perfect 84

4.9 Summary 84

Exercises 85

References and Bibliography

87

PART II THE RELATIONAL MODEL

91

Chapter 5

TYPES 93

5.1 Introduction 93

5.2 Values vs. Variables

94

5.3 Type Generators 97
5.4 SQL Facilities

5.5 Summary 106

Exercises 107

References and Bibliography

Chapter 6

Relations

111

6.1 Introduction

111

6.2 Tuples 111

6.3 Relation Types

116

6.4 Relation Values

118

6.5 Relation Variables

127

6.6 SQL. Facilities

131

6.7 Summary 137

Exercises

139

References and Bibliography

Chapter 7

Relational Algebra

7.1 Introduction 143

143

7.2 Closure Revisited 145

7.3 Relational Operators 147

7.4 Examples 158

7.5 What Is the Algebra For? 160

7.6 Further Points 162

7.7 Summary 163

Exercises 164

References and Bibliography

Chapter 8

Relational Calculus

109

140

167

169

8.1 Introduction

169

8.2 Tuple Calculus

171

8.3 Examples 178

8.4 Calculus vs. Algebra

181

8.5 Computational Capabilities

186

8.6 SQL Facilities 187
8.7 Domain Calculos 197

8.8 Query-By-Example 199

elem Ove

8.9 Summary 204

Exercises 206

ance SO

References and Bibliography. 207

Chapter 9 Integrity

9,1 Introduction 209

209

9.2 Internal rs. External Predicates 210

9.3 Correctness vs. Consistency 212

9.4 Integrity and Views 214

215 9.5 A Constraint Classification Scheme

9.6 Keys 217

9.7 Triggers (A Digression) 222

9.8 SQL Facilities 225

9.9 Summary 230

Exercises

232

References and Bibliography 233

Chapter 10 Views 237

10.1 Introduction 237

10.2 What Are Views For?

239

10.3 View Retrievals 240

10.4 View Updates

241

10.5 SQL Facilities 257

10.6 Summary

260

Exercises

260

References and Bibliography

262

PART III DATABASE DESIGN 265

Chapter 11

Functional Dependencies

269

11.1 Introduction 269

11.2 Basic Definitions 270
11.3 Trivial and Nontrivial Dependencies

273

11.4

Closure of a Set of Dependencies

11.5 Closure of a Set of Attributes 275

274

11.6 Irreducible Sets of Dependencies

277

11.7

Summary 279

Exercises 280

References and Bibliography

282

Chapter 12 Further Normalization I: INF, 2NP, 3NF, BCNF

283

12.1 Introduction 283

12.2 Nonloss Decomposition and Functional Dependencies 287

12.3 First, Second, and Third Normal Forms 291

12.4 Dependency Preservation 299

12.5 Boyce/Codd Normal Form 302

12.6 A Note on Relation-Valued Attributes

307

12.7 Summary 309

Exercises

311

References and Bibliography 313

Chapter 13 Further Normalization II: Higher Normal Forms 315

13.1

Introduction 315

13.2

Multi-valued Dependencies and Fourth Normal Form

316

13.3 Join Dependencies and Fifth Normal Form 320

13.4 The Normalization Procedure Summarized

326

13.5

A Note on Denormalization

328

13.6 Orthogonal Design (A Digression)

330

13.7

Other Normal Forms

333

13.8 Summary 335

Exercises

336

References and Bibliography

337

Chapter 14

Semantic Modeling

339

14.1 Introduction

339

340

14.2 The Overall Approach
14.3

The E/R Model

343

14.4

E/R Diagrams

347

14.5

Database Design with the E/R Model

14.6

A Brief Analysis

14.7

Summary

Exercises

354

357

359

349

References and Bibliography

359

TRANSACTION MANAGEMENT

363

PART IV

Chapter 15

Recovery 365

15.1 Introduction 365

15.2 Transactions 366

15.3

Transaction Recovery

370

15.4

System Recovery

373

15.5

Two-Phase Commit

375

15.6 Savepoints (A Digression)

377

15.7

SQL Facilities 377

15.8 Summary

378

Exercises 380

References and Bibliography

380

Chapter 16

Concurrency 383

16.1 Introduction 383

16.2

Three Concurrency Problems

16.3 Locking 388

384

16.4 The Three Concurrency Problems Revisited 390

16.5

Deadlock 392

16.6 Serializability 394

16.7 Recovery Revisited 396

16.8

Isolation Levels

398

16.9 Intent Locking

401

16.10 Dropping ACID

403
16.11 SQL Facilities 408

16.12 Summary 409

Exercises 410

References and Bibliography 412

PART V FURTHER TOPICS 415

Chapter 17 Security 417

17.1 Introduction 417

17.2 Discretionary Access Control 420

17.3 Mandatory Access Control 425

17.4 Statistical Databases 428

17.5 Data Encryption 433

17.6 SQL Facilities 437

17.7 Summary 441

Exercises 442

References and Bibliography 443

Chapter 18 Optimization 445

18.1 Introduction 445

18.2 A Motivating Example 447

18.3 An Overview of Query Processing 448

18.4 Expression Transformation 453

18.5 Database Statistics 458

18.6 A Divide-and-Conquer Strategy 459

463 18.7 Implementing the Relational Operators

18.8 Summary 468

Exercises 469

References and Bibliography 472

Chapter

19 Missing Information

19.1 Introduction 477

477

19.2 An Overview of the 3VL Approach 479
19.3

Some Consequences of the Foregoing Scheme

19.4 Nulls and Keys

19.5 Outer Join (A Digression) 491

19.6 Special Values 494

19.7 5Q1. Facilities 494

19.8 Summary 500

Exercises 501

References and Bibliography

Chapter 20

Type Inheritance

20.1 Introduction 505

505

20.2 Type Hierarchies 510

503

20.3 Polymorphism and Substitutability 513

20.4 Variables and Assignments

517

521 20.5 Specialization by Constraint

484

20.6 Comparisons 523

20.7 Operators, Versions, and Signatures 527

20.8 Is a Circle an Ellipse? 531

20.9 Specialization by Constraint Revisited

20.10 SQL Facilities 537

20.11 Summary

Exercises 543

542

References and Bibliography 545

Chapter 21

Distributed Databases 547

21.1 Introduction 547

21.2 Some Preliminaries 548

21.3 The Twelve Objectives 552

21.4 Problems of Distributed Systems 560

21.5 Client/Server Systems 572

21.6 DBMS Independence 575

21.7 SQL Facilities 580

21.8 Summary

581

Exercises 582

References and Bibliography 583

535
Chapter 22

Decision Support

22.1

Introduction 587

587

22.2 Aspects of Decision Support 589

22.3 Database Design for Decision Support 591

22.4 Data Preparation 599

22.5 Data Warehouses and Data Marts

602

608

22.6 Online Analytical Processing

22.7 Data Mining 616

22.8 SQL Facilities 618

22.9 Summary 618

Exercises 619

References and Bibliography

Chapter 23

Temporal Databases

23.1

Introduction 623

23.2

What Is the Problem?

23.3 Intervals 634

623

628

620

23.4 Packing and Unpacking Relations 640

23.5 Generalizing the Relational Operators

23.6 Database Design 654

23.7 Integrity Constraints

661

650

23.8 Summary 666

Exercises 668

References and Bibliography

Chapter 24

Logic-Based Databases

24.1 Introduction

669

671

671

24.2

Overview 672

24.3 Propositional Calculus 674

24.4

Predicate Calculus

679

24.5

A Proof-Theoretic View of Databases

685

24.6

Deductive Database Systems

689

24.7

Recursive Query Processing

694

24.8 Summary

700

Exercises

702

References and Bibliography

703
PART VI OBJECTS, RELATIONS, AND XML

705

Chapter 25

Object Databases

25.1

Introduction 707

707

25.2

Objects, Classes, Methods, and Messages

25.3

A Closer Look 716

25.4

A Cradle-to-Grave Example

25.5

Miscellaneous Issues

25.6

Summary 743

Exercises 745

725

735

References and Bibliography

Chapter 26

Object/Relational Databases

746

749

711

26.1 Introduction 749

26.2 The First Great Blunder

752

26.3

The Second Great Blunder

760

764 26.4 Implementation Issues

26.5 26.6 SQL Facilities 768

Benefits of True Rapprochement

26.7 Summary 775

Exercises 776

References and Bibliography

Chapter 27

The World Wide Web and XML

767

777

27.1 Introduction 781

27.2

The Web and the Internet

782

27.3 An Overview of XML

783

27.4 XML Data Definition

794

27.5 XML Data Manipulation

803

27.6 XML and Databases

811

27.7 SQL Facilities 815

27.8 Summary

819

Exercises

821

References and Bibliography

781

823
APPENDIXES 825

Appendix A The TransRelational Model 827

827 A.1 Introduction

A.2 Three Levels of Abstraction 829

A.3 The Basic Idea 832

A.4 Condensed Columns 838

A.S Merged Columns 842

A.6 Implementing the Relational Operators 846

A.7 Summary 851

References and Bibliography 852

Appendix B SQL Expressions 853

B.1 Introduction 853

B.2 Table Expressions 853

B.3 Boolean Expressions 859

Appendix C Abbreviations, Acronyms, and Symbols 863

Appendix D Storage Structures and Access Methods 871

D.1 Introduction 871

D.2 Database Access: An Overview 872

D.3 Page Sets and Files 876

D.4 Indexing 883

D.5 Hashing 891

D.6 Pointer Chains 896

D.7 Compression Techniques 899

D.8 Summary 903

Exercises 904

References and Bibliography 906

Index 909



9788177585568

005.74