Database Concepts Fifth Edition David M. Kroenke David J. Auer ^111 I ii i.111 111 n.n jiiim^ TECHNISCHE INFORMATIOMSBiBLIOTHEK UNIVERSITATSBIBLIOTHEK HANNOVER j TIB/UB Hannover Prentice Hall Boston Columbus Indianapolis New York San Francisco Upper Saddle River Amsterdam Cape Town Dubai London Madrid Milan Munich Paris Montreal Toronto Delhi Mexico City Sao Paulo Sydney Hong Kong Seoul Singapore Taipei Tokyo
Contents f PART I DATABASE FUNDAMENTALS 1 1 Getting Started 3 Why Use a Database? 4 What Is a Database System? 13 The Access Workbench Section 1 Getting Started with Microsoft Access 19 Summary 46 Key Terms 46 Review Questions 46 Exercises 48 Access Workbench Key Terms 48 Access Workbench Exercises 49 Garden Glory Project Questions 50 James River Jewelry Project Questions 50 The Queen Anne Curiosity Shop Project Questions 51 2 The Relational Model 52 Relations 53 Types of Keys 56 The Problem of Null Values 62 Functional Dependencies and Normalization 64 The Access Workbench Section 2 Working with Multiple Tables in Microsoft Access 75 Summary 89 Key Terms 90 Review Questions 90 Exercises 92 Access Workbench Key Terms 92 Access Workbench Exercises 93 Garden Glory Project Questions 96 James River Jewelry Project Questions 97 The Queen Anne Curiosity Shop Project Questions 98 3 Structured Query Language 101 An Example Database 102 SQL for Data Definition 106 SQL for Inserting Relational Data 117 v
Vi Contents SQL for Relational Queries 118 SQL tor Relational Data Modification and Deletion 147 SQL for Table and Constraint Modification and Deletion 150 SQL Views 151 The Access Workbench Section 3 Working with Queries in Microsoft Access 152 Summary 179 Key Terms 180 Review Questions 180 Exercises 184 Access Workbench Key Terms 186 Access Workbench Exercises 186 Garden Glory Project Questions 189 James River Jewelry Project Questions 191 The Queen Anne Curiosity Shop Project Questions 192 3A SQL Views 195 Creating SQL Views 196 Using SQL Views 199 The Access Workbench Section 3A -Working with Views in Microsoft Access 204 Summary 208 Key Terms 208 Review Questions 208 Exercises 209 Access Workbench Key Terms 209 Access Workbench Exercises 209 Garden Glory Project Questions 211 James River Jewelry Project Questions 211 The Queen Anne Curiosity Shop Project Questions 211 0 PART II DATABASE DESIGN 213 4 Data Modeling and the Entity-Relationship Model 215 Requirements Analysis 216 The Entity-Relationship Data Model 217 Entity-Relationship Diagrams 222 Developing an Example E-R Diagram 229 The Access Workbench Section 4 Prototyping Using Microsoft Access 239 Summary 247 Key Terms 248 Review Questions 248 Exercises 249 Access Workbench Key Terms 250 Access Workbench Exercises 250 Garden Glory Project Questions 251 James River Jewelry Project Questions " 251 The Queen Anne Curiosity Shop Project Questions 252
Contents vii 5 Database Design 253 Transforming a Data Model into a Database Design 254 Representing Entities with the Relational Model 254 Representing Relationships 263 Database Design at Heather Sweeney Designs 275 The Access Workbench Section 5 Relationships in Microsoft Access 278 Summary 285 Key Terms 285 Review Questions 285 Exercises 287 Access Workbench Key Terms 288 Access Workbench Exercises 288 Garden Glory Project Questions 289 James River Jewelry Project Questions 289 The Queen Anne Curiosity Shop Project Questions 289 f PART III DATABASE MANAGEMENT 291 6 Database Administration 293 The Heather Sweeney Designs Database 294 The Need for Control, Security, and Reliability 294 Concurrency Control 303 Cursor Types 312 Database Security 314 Database Backup and Recovery 320 Additional DBA Responsibilities 324 Distributed Database Processing 324 Object-Relational Databases 326 The Access Workbench Section 6 Database Administration in Microsoft Access 327 Summary 351 Key Terms 352 Review Questions 353 Exercises 355 Access Workbench Key Terms 355 Access Workbench Exercises 355 Garden Glory Project Questions 356 James River Jewelry Project Questions 357 The Queen Anne Curiosity Shop Project Questions 359 7 Database Processing Applications 361 The Database Processing Environment 362 Web Database Processing 365 Database Processing and XML 382
viii Contents The Access Workbench Section 7 Web Database Processing Using Microsoft Access 391 Summary 398 Key Terms 400 Review Questions 400 Exercises 402 Access Workbench Exercises 404 Garden Glory Project Questions 404 James River Jewelry Project Questions 405 The Queen Anne Curiosity Shop Project Questions 405 8 Database Processing for Business Intelligence Systems 407 Business Intelligence Systems 408 The Relationship Between Operational and Bl Systems 408 Reporting Systems and Data Mining Applications 409 Data Warehouses and Data Marts 410 Reporting Systems 420 Data Mining 426 The Access Workbench Section 8 Business Intelligence Microsoft Access 431 Summary 443 Key Terms 444 Review Questions 445 Exercises 446 Access Workbench Exercises 448 Garden Glory Project Questions 448 James River Jewelry Project Questions 449 The Queen Anne Curiosity Shop Project Questions 450 Systems Using Glossary 453 Index 461 ONLINE APPENDICES: SEE PAGE 451 FOR INSTRUCTIONS Appendix A: Getting Started with Microsoft SQL Server 2008 R2 Express Edition Appendix B: Getting Started with MySQL Community Server 5.1 Appendix C: Getting Started in Systems Analysis and Design Appendix D: Getting Started with Microsoft Visio 2010 Appendix E: Getting Started with Web Servers, PHP and the Eclipse PDT