24749nam a22001217a 45000200018000000820016000181000039000342450067000732500023001402600063001633000053002265052434800279 a9789332549951 a005.74bKRO aKroenke, David M. | Auer, David J. aDatabase Processing : fundamentals, design, and implementation aThirteenth Edition aIndia:bPearson India Education Services Pvt. Ltd.,c2015. a640p.bIncludes Bibliograpgy, Glosarry and Index aContents Preface 19 Part 1 Getting Started Chapter 1: Introduction 34 Chapter Objectives 34 The Characteristics of Databases 35 A Note on Naming Conventions 36 A Database Has Data and Relationships 36 Databases Create Information 37 Database Examples 38 Single User Database Applications 38 Multiuser Database Applications 38 E-Commerce Database Applications 39 Reporting and Data Mining Database Applications 39 The Components of a Database System 40 Database Applications and SQL 41 The DBMS 43 The Database 44 Personal Versus Enterprise-Class Database Systems 46 What Is Microsoft Access? 46 What Is an Enterprise-Class Database System? 47 Database Design 49 Database Design from Existing Data 49 Database Design for New Systems Development 50 Database Redesign 51 What You Need to Learn 52 A Brief History of Database Processing 53 The Early Years 53 The Emergence and Dominance of the Relational Model 55 Post-Relational Developments 56 33 Review Questions 59 Project Questions 61 Summary 58 Key Terms 59 Chapter 2: Introduction to Structured Query Language 65 Chapter Objectives 65 Components of a Data Warehouse 66 Cape Codd Outdoor Sports 67 The Extructed Retail Sales Data 67 RETAIL ORDER Data 68 ORDER ITEM Data 69 SKU DATA Table 70 The Complete Cape Codd Data Extract Schema 70 Data Extracts Are Common 71 SQL Background 71 The SQL SELECT/FROM/WHERE Framework 72 Reading Specified Columns from a Single Table 72 Specifying Column Order in SQL Queries from a Single Table 73 Reading Specified Rows from a Single Table 75 Reading Specified Columns and Rows from a Single Table 76 Submitting SQL Statements to the DBMS 77 Using SQL. in Microsoft Access 2013 77 Using SQL in Microsoft SQL Server 2012 82 Using SQL in Oracle Database 11g Release 2 85 Using SQL in Oracle MySQL 5.6 87 SQL Enhancements for Querying a Single Table 390 Sorting the Query 50 SQL WHERE Cе Ореола 32 Coming the Dhong St. Bush in Functions 97 SQL Express SQI. SELECT 100 WHERE Clause and the SQL. ORDER BY C97 Performing Calculations in 501. Queries 97 Grouping in SQE. SELECT Statements 102 Looking for Patterns in NASDAQ Trading 106 nvestigating the Characteristic of the Data 206 Searching for Patterns in Trading by Day of Week 107 Querying Two or More Tables with SQL. 109 Quyong Mall Tables with Sugar Comparing Subqueries and Joins 117 The SQL JOIN ON Syntax 117 OS11712 Joina 119 Summary 123 Key Terms 123 Review Questions 124 Project Questions 129 Case Questions 133 The Queen Anne Curiosity Shop 138 Morgan Importing 145 149 Part 2 Database Design Chapter 3: The Relational Model and Normalization 150 Chapter Objectives 150 Relational Model Terminology 152 Relations 152 Characteristics of Relations 153 Alternative Terminology 155 Functional Dependencies 156 Finding Functional Dependencies 158. Kirs 161 Normal Forms 163 Modification Anomalies 163 A Short History of Normal Forma 164 Normalization Categories 165 From First Normal Form to Boyce-Codd Normal Form Step by Step 166 Eliminating Anomalies from Functional Deperudencies with BCNF 169 Eliminating Anomalies from Multivaland Dependencies 179 Fifth Normal Form 183 Domain/Key Normal Form 183 Summary 183 Key Terms 184 Review Questions 185. Project Questions 187 Case Questions 188 The Queen Anne Curiosity Shop 189 Morgan Importing 191 Chapter 4: Database Design Using Normalization 192 Chapter Objectives 192 Assess Table Structure 193 Designing Updatable Databases 194 Advantages and Disadvantages of Normalization 194 Functional Dependencies 195 Normalizing with SQL 195 Choosing Not to Use BCNF 196 Multivalued Dependencies 197 Designing Read-Only Databases 197 Denormalization 198 Customized Duplicated Tables 199 Common Design Problems 199 The Multivalue, Multicolumn Problem 200 Inconsistent Values 202 Missing Values 203 The General-Purpose Remarks Column 204 Summary 205 Key Terms 205 Review Questions 206 Project Shop 209 Morgan Importing 210 Questions 208 Case Questions 208 The Queen Anne Curiosity Chapter 5: Data Modeling with the Entity-Relationship Model 211 Chapter Objectives 211 The Purpose of a Data Model 212 The Entity-Relationship Model 212 Entities 213 Attributes 213 Identifiers 213 Relationships 214 Maximum Cardinality 216 Minimum Cardinality 217 Entity Relationship Diagrams and Their Versions 218 Variations of the E-R Model 218 E-R Diagrams Using the IE Crow's Foot Model 219 Strong Entities and Weak Entities 221 ID-Dependent Entities 221 Non-ID-Dependent Weak Subtype Entities 223 Entities 222 The Ambiguity of the Weak Entity 223 Patterns in Forms, Reports, and E-R Models 225 Strong Entity Patterns 226 ID-Dependent Relationships 228 Mixed Identifying and Nonidentifying Patterns 235 The For-Use-By Pattern 237 Recursive Patterns 239 The Data Modeling Process 241 The College Report 242 The Department Report 243 The Department/Major Report 245 The Student Acceptance Letter 246 Summary 248 Key Terms 249 Review Questions 249. Project Questions 251 Case Questions 257 The Queen Anne Curiosity Shop 260 Morgan Importing 261 Chapter 6: Transforming Data Models into Database Designs 262 Chapter Objectives 262 The Purpose of a Database Design 263 Create a Table for Each Entity 263 Selecting the Primary Key 264 Specifying Candidate (Alternate) Keys 265 Specify Column Properties 266 Verify Normalization 268 Create Relationships 268 Relationships Between Strong Entities 269 Relationships Using ID-Dependent Entities 272 Relationships with a Weak Non-ID-Dependent Entity 277 Relationships in Mixed Entity Designs 277 Relationships Between Supertype and Subtype Entities 279 Recursive Relationships 279 Representing Ternary and Higher-Order Relationships 281 Relational Representation of the Highline University Data Model 284 Design for Minimum Cardinality 285 Actions When the Parent Is Required 287 Actions When the Child Is Required 288 Implementing Actions for M-O Relationships 288 Implementing Actions for O-M Relationships 289 Implementing Actions for M-M Relationships 290 Designing Special Case M-M Relationships 290. Documenting the Minimum Cardinality Design 291 An Additional Complication 293 Summary of Minimum Cardinality Design 293 The View Ridge Gallery Database 293 Summary of Requirements 293 The View Ridge Gallery Data Model 294. Database Design with Data Keys 295 Minimum Cardinality Enforcement for Required Parents 296 Minimum Cardinality Enforcement for the Required Child 297 Column Properties for the View Ridge Gallery Database Design Tables 300 Summary 301 Key Terms 302 Review Questions 302 Project Questions 304 Case Questions 305 The Queen Anne Curiosity Shop 307 Morgan Importing 307 Database Implementation Chapter 7: SQL for Database Construction and Application Processing 310 Chapter Objectives 310 The Importance of Working with an Installed DBMS Product 311 The View Ridge Gallery Database 311 SQL DDL and DML 312 Managing Table Structure with SQL DDL 313 309 Creating the View Ridge Gallery Database 313 Using SQL Scripts 313 Using the SQL CREATE TABLE Statement 314 Variations in SQL Data Types 315 Creating the ARTIST Table 315 Creating the WORK Table and the IN ARTIST-to-WORK Relationship 322 Implementing Required Parent Rows 324 Implementing El Relationships 324. Camal Relationships 324 Creating Default Values and Data Constraints with SQL. 324 Creating the View Ridge Gallery Database Tables 326 The SQL ALTER TABLE Statement 330 The SQL DROP TABLE INDEX Statement 331 Statement 330 The SQL TRUNCATE TABLE Statement 331 The SQL CREATE SQL DML Statements 332 The SQL INSERT Statement 332 Populating the View Ridge Gallery Database Tables 333 The SQL UPDATE Statement 339 The SQL MERGE Statement 340 The SQL DELETE Statement 341 Using SQL Views 341 Using SQL Views to Display Syntax 346 Layering Built-in Functions 346 Using SQL Views for Isolation, Multiple Using SQL Views to Hide Columns and Rows 343 Results of Computed Columns 345 Using SQL Views to Hide Complicated SQL Permissions, and Multiple Triggers 349 Updating SQL Views 350. Embedding SQL in Program Code 351 SQL/Persistent Stored Modules (SQL/PSM) 352 Using SQL User-Defined Functions 352 Using SQL. Triggers 355 Using Stored Procedures 362 Summary 365 Key Terms 366 Review Questions 367 Project Questions 371 Case Questions 375 The Queen Anne Curiosity Shop 385 Morgan Importing 391 Chapter 8: Database Redesign 398 Chapter Objectives 398 The Need for Database Redesign 399 SQL. Statements for Checking Functional Dependencies 399 What Is a Correlated Subquery? 400 EXISTS and NOT EXISTS 403 How Do I Analyze an Existing Database? 405 Reverse Engineering 405 Dependency Graphs 406 Database Backup and Test Changing Table Names and Table Columns 408 Databases 407 Changing Table Names 408 Adding and Dropping Columns 410 Changing a Column Data Type or Column Constraints 411 Adding and Dropping Constraints 411 Changing Relationship Cardinalities 411 Changing Minimum Cardinalities 412 Changing Maximum Cardinalities 413 Reducing Cardinalities (with Data Loss) 415 Adding and Deleting Tables and Relationships 416 Forward Engineering 416 Summary 417 Key Terms 418 Questions 420 Case Questions 421 The Queen Anne Curiosity Review Questions 418. Project Shop 422 Morgan Importing 423 Part 4 Multiuser Database Processing Chapter 9: Managing Multiuser Databases 426 Chapter Objectives 426 The Importance of Working with an Installed DBMS Product 427 Database Administration 428 Managing the Database Structure 428 Concurrency Control 429 The Need for Atomic Transactions 430 Pessimistic Locking 435 Resource Locking 433 Optimistic Versus SQL. Transaction Control Language and Declaring Lock Characteristics 436 Implicit and Explicit COMMIT TRANSACTION 438 Consistent Transactions 438 Transaction Isolation Level 439 SQL Cursers 440 Database Security 442 Processing Rights and Responsibilities 442 DBMS Security 443 DBMS Security The SQL bijection Attack 447 Guidelines 444 Application Security 446 Database Backup and Recovery 447 Recovery via Reprocessing 448 Recovery via Rollback/Rollforward 448 Managing the DBMS 450 Maintaining the Data Repository 451 Summary 452 Key Terms 453 Review Questions 454. Project Questions 456 Case Questions 457 The Queen Anne Curiosity Shop 458 Morgan Importing 459 Chapter 10: Managing Databases with SQL Server 2012, Oracle 11g Release 2, and MySQL 5.6 460 Chapter Objectives 460 Installing the DBMS 461 Using the DBMS Database Administration and Database Development Utilities 462 Cresting a Database 462 Creating and Running SQL. Scripts 463 Reviewing the Database Structure in the DBMS GUI Utility 463 Creating and Populating the View Ridge Gallery Database Tables 463 Creating SQL Views for the View Ridge Gallery Database 464 Database Application Logic and SQL/Persistent Stored Modules (SQL/PSM) -464 DBMS Concurrency Control 464 DBMS Security 464 DAMS Backup and Recovery 464 Other DBMS Topics Not Discussed 465 Choose Your DBMS Product(s) 465 Summary 465 Key Terms 466 Project Questions 466 ONLINE CHAPTER: SEE PAGE 465 FOR INSTRUCTIONS Chapter 10A: Managing Databases with SQL Server 2012 Chapter Objectives Installing SQL Server 2012 The Microsoft SQL Server 2012 Management Studio Creating an SQL Server 2012 Database SQL Server 2012 Utilities SQL CMD and Microsoft PowerShell Microsoft SQL CLR SQL Server 2012 GUI Displays Contents Creating the View Ridge Gallery Database Table Stracture Reviewing Database Structures in the SQL Server GUI Display Indexes Populating the VRG Tables SQL Server 2012 SQL. Statements and SQL. Scripts Creating and Populating the View Ridge Gallery Database Tables with Data Creating Views SQL Server Application Logic Transact-SQL, User Defined Functions Stored Procedures. Triggers Concurrency Control Transaction Isolation Level Cursor Concurrency Locking Hints SQL Server 2012 Security SQL Server Database Security Settings SQL Server 2012 Backup and Recovery Backing Up a Database SQL Server Recovery Models. Restoring a Database Database Maintenance Plans Topics Not Discussed in This Chapter Summary Key Terms Review Questions Questions The Queen Anne Curiosity Shop Project Questions. Case Morgan Importing ONLINE CHAPTER: SEE PAGE 465 FOR INSTRUCTIONS Chapter 108: Managing Databases with Oracle Database 11g Release 2 Chapter Objectives Installing Oracle Database 11g Release 2 Installing a Loopback Adapter Oracle Database and Java. Oracle Database 11g Release 2 Documentation The Oracle Universal Installer (OUI) Oracle Database 11g Release 2 Administration and Development Tools The Oracle Database 11g Release 2 Configuration Assistant The Oracle Enterprise Manager 11g Database Control Oracle Database Tablespaces User Privileges Creating a User Account Creating a Role Oracle Application Development Tools Oracle Database Security Oracle SQL*Plus Oracle SQL. Developer Oracle Database Schemas Oracle Database 11g Release 2 SQL Statements and SQL Scripts Creating and Populating the View Ridge Gallery Database Tables Creating the View Ridge Gallery Database Table Structure Transaction COMMIT in Oracle Database Reviewing Database Structures in the SQL Developer GUI Display Indexes Populating the VRG Tables Creating Views Oracle Database Application Logic Oracle Database PL/SQL User-Defined Functions Stored Procedures. Triggers Oracle Database Concurrency Control Read-Committed Transaction Isolation Level Level Read-Only Transaction Isolation Oracle Database Backup and Recovery Serializable Transaction Isolation Additional Locking Comments Oracle Recovery Facilities Types of Failure Topics Not Discussed in This Chapter Summary Key Terms Review Questions Project Questions. Case Questions. The Queen Anne Curiosity Shop Morgan Importing ONLINE CHAPTER: SEE PAGE 465 FOR INSTRUCTIONS Chapter 100: Managing Databases with MySQL, 5.0 Chapter Objective The MySQL. 56 DAMS Installing and Updating MySQL. Configuring MySQL Mys) Serage Engines The MySQL GUE Utilities Crating a Hirlapace for the MyStench Fes Creating and Uing a MySQL, Database Crenting a Database in MySQL Sesting the Active Database in MySQL MySQL. Utilities A-SQL. Commsarul Line Chent MySQL GAI Daphrys M-SQL SQL Statements and SQL Serger Cresting and Populating the View Ridge Gallery Database Tables Deating the View Ridge Gallery Database Table Structure Reviewing Database Structures in the My SQL GUI Duplay badexes Populating the VRG Tables with Data Transaction COMMIT as MySQL Creating Viewe MySQL Application Logie My St. Procedural Statements User-Defined Function Stord Procedures Triggers A Last Word on MyS) Stored Proceduret and Trigger Concurrency Control MySQL. 56 Security MySQL Database Security Settings MySQL 5.6 DBMS Backup and Recovery Backing Up a MySQL Database Restoring a My SQ. Database Topics Not Discussed in This Chapter Summary Key Terms Review Questions Project Questions Case Questions The Queen Anne Curiosity Shop Morgan Importing Part 5 Database Access Standards Chapter 11: The Web Server Environment 468 Chapter Objectives 468 A Web Database Application for the View Ridge Gallery 469 The Web Database Processing Environment 469 The ODBC Standard 471 13 467 ODBC Architecture 472 Conformance Levels 473 Creating an ODBC Data Source Name 474 The Microsoft NET Framework and ADO.NET 450 OLE DB 481 ADO and ADO.NET 485 The ADO.NET Object Model 486 The Java Platform 489 JDBC 489 Java Server Pages (ISP) and Servlets 492 Apache Tomcat 492 Web Database Processing with PHP 493 Web Database Processing with PHP and Eclipse 494 Web Pages 496 The index.html Web Page 497 Getting Started with HTML Creating the index.html Web Page 497 Using PHP 499 Challenges for Web Database Processing 505 Web Page Examples with PHP 506 Example 1: Updating a Table 507 Example 2- Using PHP Data Objects (PDO) 511 Example 3: Invoking a Stored Procedure 513 The Importance of XML 518 XML as a Markup Language 519 XML. Document Type Declarations 519 Materializing XML Documents with XSLT 520 XMI. Schema 524 XMI. Schema Validation 525 Elementy and Attributes 526 Flat Versas Structured Schumas 527 Global Elements 531 Coating XML Documents from Database Data 533 Using the SQL SELECT... FOR XMI. Statement 533 Atulistable SELECT with FOR XML 538 An XML Schema for AL CUSTOMER Purchases 543 A Schema with Tw Multaalsed Paths 546 Why Is XML Important? 546 Additional XMI. Standanis 551 Summary 554 Key Terms 556 Review Questions 557 Project Questions 501 Case Questions 562 The Queen Anne Curiosity Shop 563 Morgan Importing 564 Chapter 12: Big Data, Data Warehouses, and Business Intelligence Systems 566 Chapter Objectives 506 Business Intelligence Systems 568 The Relationship Between Operational and BM Systems 568 Reporting Systems and Data Mining Applications 560 Reporting Systems 569 Data Mining Applications 569 Data Warehouses and Data Marts 570 Marts 572 Dimensional Databases 574 Components of a Data Warehouse 570 Data Warehouses Versus Data Reporting Systems 582 RFM Analysis 582 OLAP 583 Distributed Database Processing 593 Data Mining 592 Types of Distributed Databases 593 Challenges of Distributed Databases 594 Object-Relational Databases 595 Virtualization 596 Cloud Computing 598 Big Data and the Not Only SQL Movement 600 Structured Storage 600 MapReduce 601 Hadoop 602 Summary 603 Key Terms 604 Review Questions 605 Project Questions 607 Case Questions 608 The Queen Anne Curiosity Shop 609 Morgan Importing 610 ONLINE APPENDICES: SEE PAGE 612 FOR INSTRUCTIONS Appendix A: Getting Started with Microsoft Access 2013 Appendices Chapter Objectives What Is the Purpose of This Appendix? Why Should I Learn to Use Microsoft Access 2013? What Will This Appendix Teach Me? What Is a Table Key? Relationships Among Tables Creating a Microsoft Access Database The Microsoft Office Fluent User Interface The Ribbon and Command Tabs Contextual Command Tabs Modifying the Quick Access Toolbar Database Objects and the Navigation Pane Closing a Database and Exiting Microsoft Access Opening an Existing Microsoft Access Database Creating Microsoft Access Database Tables Inserting Data into Tables-The Datasheet View Modifying and Deleting Data in Tables in the Datasheet View Creating Relationships Between Tahles Working with Microsoft Access Queries Microsoft Access Forms and Reporta Closing a Database and Exiting Microsoft Access 2013 Key Terms Review Questions Appendix B: Getting Started with Systems Analysis and Design Chapter Objectives What Is the Purpose of This Appendix? What Is Information? What Is an Information System? What Is a Competitive Strategy? How Does a Company Organize Itself Based on Its Competitive Strategy! What Is a Business Process? How Do Information Systems Support Business Processes? Do Information Systems Include Processes? Do We Have to Understand Business Processes in Order to Create Information Systems? What Is Systems Analysis and Design? What Are the Steps in the SDLC? The Ribbon and Command Tabs The System Definition Step The Requirements Analysis Step The Component Design Step The Implementation Step The System Maintenance Step What SDLC Details Do We Need to Know? What Is Business Process Modeling Notation? What Is Project Scope? How Do I Gather Data and Information About System Requirements? How Do Use Cases Provide Data and Information About System Requirements? The Highline University Database The College Report The Department Report The Department/Major Report The Student Acceptance Letter What Are Business Rules? What Is a User Requirements Document (URD)? What Is a Statement of Work (SOW)? Key Terms Review Questions Project Questions Appendix C: E-R Diagrams and the IDEF1X Standard Chapter Objectives IDEFIX Entities IDEFIX Relationships Nonidentifying Connection Relationships Identifying Connection Relationships Nonspecific Relationships Categorization Relationships Domains Domains Reduce Ambiguity Domains Are Useful Base Domains and Typed Domains Key Terms Review Questions Appendix D: E-R Diagrams and the UML Standard Chapter Objectives UMI. Entities and Relationships Representation of Weak Entities Representation of Subtypes OOP Constructs Introduced by UML The Hole of UML in Database Processing Today Appendix E: Getting Started with MySQL Workbench Data Modeling Tools Key Terms Review Questions Chapter Objectives What Is the Purpose of This Appendix? Why Should I Learn to Use the MySQL, Workbench Data Modeling Tools? What Will This Appendix Teach Me? What Won't This Appendix Teach Me? How Do I Start the MySQL Workbench? How Do I Create a Workspace for the MySQL Workbench Files? How Do I Install the MySQL. Connector/ODBC? How Do I Create Database Designs in the MySQL Workbench? How Do I Create a Database Model and E-R Diagram in the MySQL Workbench? Key Terms Review Questions Project Questions Appendix F: Getting Started with Microsoft Visio 2013 Chapter Objectives What Is the Purpose of This Appendix? Why Should I Learn to Use Microsoft Visio 2013? What Will This Appendix Teach Me? What Won't This Appendix Teach Me? How Do I Create a Database Model Diagram in Microsoft Visio 2013? How Do I Start Microsoft Visio 2013? How Do I Name and Save a Database Model Diagram in Microsoft Visio 2013? How Do I Create Entities in a Database Model Diagram in Microsoft Visio 2013? How Do I Create Relationships Between Entities in a Data Model Diagram in Microsoft Visio 20132 Visio 2013? How Do I Create Diagrams Using Business Process Modeling Notation (BPMN) in Microsoft Key Terms Review Questions Project Questions Appendix G: Data Structures for Database Processing Chapter Objectives Flat Files Processing Flat Files in Multiple Orders A Note on Record Addressing Maintaining Order with Linked Lists Maintaining Order with Indexes B-Trees Summary of Data Structures Representing Binary Relationships Review of Record Relationships Representing Trees Representing Simple Networks Representing Complex Networks Summary of Relationship Representations Secondary-Key Representations Linked List Representation of Secondary Keys Key Terms Review Questions Index Representation of Secondary Keys Appendix H: The Semantic Object Model Chapter Objectives Semantic Objects Defining Semantic Objects Attributes Object identifiers Attribute Domains Sermantic Object Views Types of Objects Simple Objects Composite Objects Compound Objects Representing One-to-One Compound Objects Representing One-to Many and Many-to-Ove Relationships Representing Many-to-Many Relationships Hybrid Objects Representing Hybrid Relationships Association Objects Parent/Subtype Objects Archetype/Version Objects Comparing the Semantic Object and the E-R Models Key Terms Review Questions Appendix I: Getting Started with Web Servers, PHP, and the Eclipse PDT Chapter Objectives What Is the Purpose of This Appendix? How Do I Install a Web Server? How Do 1 Set Up IIS in Windows 7 and Windows 8? How Do I Manage IIS in Windows 7 and Windows 8? How Is a Web Site Structured? How Do I View a Web Page from the IIS Web Server? How Is Web Site Security Managed? What Is the Eclipse PDT? How Do I Install the Eclipse PDT? What Is PHP? How Do I install PHP? How Do I Create a Web Page Using the Eclipse PDT? How Do I Manage the PHP Configuration? Key Terms Review Questions Project Questions Appendix J: Business Intelligence Systems Chapter Objectives What Is the Purpose of This Appendix? Business Intelligence Systems Reporting Systems and Data Mining Applications Reporting Systems Data Mining Applications The Components of a Data Warehouse Data Warehouses and Data Marts Data Warehouses and Dimensional Databases Reporting Systems RFM Analysis Producing the RFM Report Reporting System Components Report Types Report Media Report Modes Report System Functions OLAP Data Mining Unsupervised Data Mining Supervised Data Mining Three Popular Data Mining Techniques Market Basket Analysis Key Terms Review Questions Project Questions Case Questions The Queen Anne Curiosity Shop Morgan Importing Bibliography 613 Glossary 615 Index 629