Skip to content

DB2 Concepts, Programming and Design

Best in textbook rentals since 2012!

ISBN-10: 0070512655

ISBN-13: 9780070512658

Edition: N/A

Authors: Jay Ranade

List price: $52.95
Blue ribbon 30 day, 100% satisfaction guarantee!
what's this?
Rush Rewards U
Members Receive:
Carrot Coin icon
XP icon
You have reached 400 XP and carrot coins. That is the daily max!

Customers also bought

Book details

List price: $52.95
Publisher: McGraw-Hill Companies, The
Binding: Hardcover
Pages: 432
Size: 6.50" wide x 9.50" long x 1.25" tall
Weight: 1.628
Language: English

Prefacep. xv
Introduction to DB2
Database Conceptsp. 3
What is a Database?p. 3
Roles in the Database Environmentp. 6
Database System Componentsp. 7
Hardwarep. 7
Datap. 7
Usersp. 8
Database Management Softwarep. 8
Categories of DBMSsp. 9
Data Modelsp. 9
Four Types of DBMSsp. 10
Relational Modelp. 12
Data Structurep. 12
Data Manipulationp. 14
Data Integrityp. 14
Implementation of the Relational Model in DB2p. 14
Data Structurep. 15
Data Manipulationp. 15
Data Integrityp. 15
DB2 Overviewp. 17
Origin and Historyp. 17
DB2's Predecessorsp. 18
Benefits of DB2p. 18
Environmentp. 19
DB2 Attachments, DSN, and Threadsp. 20
Interactive Access to Datap. 21
Components and Featuresp. 21
IRLM, System Services, Data Base Servicesp. 21
DBRMs, BIND, PLANs, and the Optimizerp. 23
DB2 Directory and Catalogp. 24
DB2 Governorp. 26
DB2 Subsystemp. 26
Distributed Data Facilityp. 26
Objectsp. 27
Tablep. 27
Tablespacep. 27
Indexp. 29
Indexspacep. 31
Databasep. 31
Storage Groupp. 32
Viewp. 32
Bufferpoolp. 34
Structured Query Languagep. 35
DML, DDL, and DCLp. 35
Interactive and Embeddedp. 36
Data Typesp. 37
Constantsp. 38
Nulls and Defaultsp. 39
Referential Integrityp. 40
Defining and Loading a Sample Databasep. 45
Gaining Authorization to Use DB2p. 45
The Sample Databasep. 46
SPUFIp. 50
Input and Output Datasetsp. 51
SPUFI Defaultsp. 53
Edit and Executep. 55
Browsep. 57
Data Manipulation Language
The Select Statementp. 63
Introductionp. 63
The Select Statement Formatp. 63
The Results Table--A Subset of Your Datap. 65
The Select Clausep. 66
*, Columns, Literalsp. 66
Distinctp. 68
The Where Clausep. 68
Comparison Operatorsp. 69
And, Orp. 70
Between, Inp. 71
Likep. 72
Negative Conditionsp. 73
Parentheses and Precedencep. 74
Column Functions and Groupsp. 75
SUM, AVG, MIN, MAX, COUNTp. 76
Group Byp. 79
Havingp. 80
Arithmetic Operationsp. 81
+, -, *, /p. 82
In the Select Clausep. 82
In the Where Clausep. 83
Scalar Functions and Concatenationp. 83
Substr, Lengthp. 84
Conversionp. 86
Concatenationp. 88
Ordering the Resultp. 89
Order By Column Namep. 89
Order By Column Numberp. 90
Null Considerationsp. 91
Comparisons, Arithmetic, Order By, Column Functionsp. 92
Valuep. 94
Subqueries, Unions, Joinsp. 95
Subqueryp. 95
After a Comparison Operatorp. 99
Inp. 102
Any, Some, Allp. 103
Correlated Subqueryp. 106
Correlated Subquery with Different Tablesp. 106
Correlation Namesp. 108
Correlated Subquery with the Same Tablep. 109
Existsp. 111
Unionp. 114
Joinp. 116
Simple Joinsp. 116
Joining a Table to Itselfp. 120
Outer Joinp. 121
Update Operations and Date and Time Supportp. 123
Date and Timep. 123
Special Registersp. 123
Date and Time Functionsp. 125
Durationp. 128
Arithmetic and Comparisonp. 129
Modifying the Databasep. 131
View Restrictionsp. 132
Insertp. 132
Deletep. 135
Updatep. 137
Referential Integrity with Insert, Delete, And Updatep. 139
Insertp. 139
Deletep. 140
Updatep. 141
Query Management Facility
QMF Overviewp. 145
First Stepsp. 146
Home Panelp. 146
QMF Overviewp. 146
Temporary and Permanent Objectsp. 151
Queryp. 152
Datap. 152
Formp. 152
Procp. 153
Profilep. 153
QMF Commandsp. 155
Savep. 155
Displayp. 155
Runp. 156
Import, Export, Print, Erase, Retrievep. 157
Listp. 159
Formatting Reportsp. 161
Headings, Edit Codes, Usage Codes, Control Breaksp. 162
Form.Calc, Form.Detailp. 171
Query by Examplep. 174
Prompted Queryp. 175
Using QMF to Support End-User Applicationsp. 177
Queryp. 177
Procp. 179
The List Commandp. 182
Batch Execution of QMFp. 182
A QMF Applicationp. 183
Application Programming
Accessing DB2 from an Application Program--Introduction to Embedded SQLp. 191
Table Declarationsp. 191
Declare Table Statementp. 192
DCLGENp. 192
SQL Communications Area (SQLCA)p. 196
Embedded SQL Statementsp. 197
Delimitersp. 197
Select Intop. 198
Host Variablesp. 199
Variable-Length Columnsp. 199
Data Type Compatibilityp. 200
To Supply a Valuep. 201
Host Structuresp. 202
Nullsp. 203
Error Handlingp. 206
SQLCA Fieldsp. 206
Wheneverp. 207
DSNTIARp. 208
Program1p. 210
Embedded SQL--Advanced Topicsp. 219
Data Integrityp. 219
Loggingp. 219
Commit And Rollbackp. 220
What DB2 Does at Commit Timep. 222
Lockingp. 222
Cursor Operationsp. 223
Declaring the Cursorp. 224
Opening and Closing the Cursorp. 224
Retrieving a Row--Fetchp. 225
Update and Deletep. 227
Reestablishing Cursor Positionp. 229
Dynamic SQLp. 231
Dynamic SQL Compared to Static SQLp. 231
Examples of Dynamic SQL in DB2p. 231
Testing Considerationsp. 232
Synonyms in Testingp. 232
Requirements for Test Datap. 233
DSNTIAULp. 234
Submitting SQL in Batchp. 235
DSNTEP2p. 236
DSNTIADp. 236
Program2p. 237
Accessing DB2 from a CICS Programp. 245
DB2-CICS Attachment Architecturep. 245
CICS Resource Control Tablep. 245
Types of Threadsp. 246
Functions Provided by the DB2-CICS Attachp. 246
The DSNC Transactionp. 247
Program Flow Through the DB2-CICS Attachp. 247
DB2-CICS Recovery and Restart--The Two-Phase Commitp. 248
Programming Considerationsp. 249
SQL Design Guidelinesp. 249
Cursors Within Pseudo-Conversational Programsp. 250
Security Considerationsp. 253
DB2-CICS Connectionp. 253
Attachment Facility and DB2 Commandsp. 253
Plan Execution and User Identificationp. 253
Test versus Production Environmentp. 254
Program3p. 254
Program Preparation and Executionp. 261
DB21 Primary Option Menup. 264
DB21 Defaultsp. 265
Program Preparation Panelsp. 266
Precompile Panelp. 268
Bind Panelp. 270
Compile, Link, and Runp. 273
Bind/Rebind/Freep. 281
STDSQL(86) And NOFORp. 284
Program Preparation Outside of DB21p. 284
TSO Foreground Executionp. 285
Execution in Batchp. 285
CICS Considerationsp. 287
Design and Implementation of a Database
Logical Database Designp. 291
Introductionp. 291
A Variety of Approaches and Toolsp. 292
Identifying the Business Information Requirementsp. 293
Business Entitiesp. 293
Relationshipsp. 294
Conditional Relationshipsp. 296
Identify the Data Requirementsp. 297
Data Entities and Relationshipsp. 297
Define Primary Key Data Elementsp. 300
Define Foreign Key Data Elementsp. 300
Define NonKey Data Elementsp. 302
Normalizationp. 302
First Normal Formp. 302
Second Normal Formp. 303
Third Normal Formp. 305
Denormalizationp. 307
Referential Integrity Decisionsp. 307
Data Definition and Data Controlp. 309
DDL--Creating DB2 Objectsp. 309
Storage Groupsp. 310
Databasep. 311
Tablespace and Tablep. 311
Indexp. 313
Primary and Foreign Keyp. 315
View and Synonymp. 317
Altering DB2 Objectsp. 318
Altering Storage Group, Index, Tablespacep. 318
Alter Tablep. 318
Dropping DB2 Objectsp. 319
Data Control Languagep. 319
Resources and Privilegesp. 320
Grouped Privilegesp. 320
Explicit and Implicit Authorizationp. 322
Data Control Language Statementsp. 322
Grantp. 322
Revokep. 323
Primary and Secondary Auth IDsp. 324
Setp. 325
DB2 Catalog Tables for Securityp. 325
Miscellaneous Topics
DB2 Performancep. 329
When a Request Is Made for Datap. 329
Initial Proceduresp. 329
SQL Processingp. 330
Commit and Thread Terminationp. 330
Data Base Servicesp. 330
Relational Data Systemp. 331
Data Managerp. 331
Buffer Managerp. 331
Indexes in DB2p. 332
Structure of Indexesp. 332
Clustered Indexp. 333
Benefits and Costs of Indexp. 335
Access Pathsp. 337
Tablespace Scansp. 337
Matchings and Nonmatching Index Scansp. 337
Index Onlyp. 338
Sequential Prefetchp. 338
List Prefetchp. 339
Optimizationp. 339
Effect of Predicates on Performancep. 340
Sargable and Nonsargable Predicatesp. 340
Indexable Predicatesp. 341
Access Paths of Queries with Multiple Tablesp. 343
Nested-Loop Joinp. 343
Merge-Scan Joinp. 344
Sortsp. 345
Lockingp. 345
Lock Sizep. 346
Lock Durationp. 346
Lock Typep. 347
Performance Considerations and EXPLAINp. 349
The Explain Functionp. 349
Creating the Plan Tablep. 349
Querying the Plan Tablep. 350
Invoking Explainp. 352
Information Provided by Explainp. 353
Examplesp. 358
Query 10p. 358
Query 20p. 359
Query 30p. 360
DB2 Commands and Utilitiesp. 363
DB2 Commandsp. 363
DB2 Command Executionp. 365
Utilitiesp. 367
Utility Executionp. 369
Utility Monitoring and Controlp. 370
The Load Utilityp. 372
The Runstats Utilityp. 376
The Copy Utilityp. 377
Distributed Database Facilityp. 379
Concepts of Distributed Databasesp. 380
What is a Distributed DBMS?p. 380
Local and Remotep. 381
Commit Scope and Logical Unit of Workp. 382
Location Transparencyp. 382
Local Autonomyp. 383
Data Distribution in DB2 2.2p. 384
Communicating with Other Subsystemsp. 384
Three-Part Names for Tables and Viewsp. 385
Using Aliasesp. 385
Date, Time, and Other Special Registersp. 386
Referential Integrity Limitationsp. 387
Accessing Remote Datap. 387
Remote Table Name Translationp. 388
Query and Block Fetchp. 389
Updatep. 390
Authorization in Distributed Environmentp. 391
Program Preparationp. 391
Limitationsp. 392
Glossaryp. 393
DB2's System/Catalog Tablesp. 403
Syntaxp. 407
Predicate Types and Processingp. 417
Acronymsp. 419
Indexp. 421
Table of Contents provided by Syndetics. All Rights Reserved.