First, the concepts of DB2 are presented and discussed.
The major features of the Structured Query Language (SQL) are presented as the means to access DB2 data (and to create and secure DB2 components). Several of the "special features" of SQL are presented.
Optionally, guided, hands-on, practice sessions give each attendee an opportunity to use SQL to access data. QMF and/or SPUFI are used to execute SQL statements.
DB2 database design and Referential Integrity (RI) are discussed.
An overview of DB2 (SQL) programming concepts are presented and discussed.
DB2 performance guidelines are discussed. Optionally, the use of the SQL statement EXPLAIN PLAN is used to help to evaluate the efficiency of SQL statements.
The following "Release Dependent" features are also covered -
Optionally, a demonstration is provided of DB2 for WINDOWs to show "future" features for DB2 for OS/390. These features include Recursive SQL, the WITH SQL feature, GROUPING SETS, ROLLUP and Visual Explain.
- Version 6 - 100 new scalar functions, update Triggers, User Defined
Functions (UDF), User Defined Types (UDT)
- Version 7 - UNION Everywhere, Scrollable cursors, Limited Fetch
- Version 8 - Additional SQL features
As a result of this class, the attendee will be able to -
- Explain DB2 concepts, terminology and components
- Discuss the Primary Key (PK), Unique Key (UK) and Foreign Key (FK) concept
- Discuss how the SELECT statement can retrieve rows of data from DB2 tables
- Optionally, Use QMF and/or SPUFI to "run" SQL statements
- Explain how the WHERE clause can SELECT specific rows of a DB2 table
- Explain the use of the ORDER BY, GROUP BY, HAVING clauses
- Discuss the CASE expressions and SCALAR / COLUMN FUNCTIONS
- Explain access multiple tables - JOIN, UNION, sub-queries, and nested tables
- Discuss how to CREATE Tables, Indexes, Views
- Explain how DB2 tables are changed - INSERT, UPDATE, and DELETE
- Describe the security provided by the GRANT and REVOKE
- Discuss the design considerations of REFERENTIAL INTEGRITY
- Discuss the Program Preparation process
- List several "quirks" of DB2 Application programming
- Discuss the importance of the SQLCODE and how to test for it
- Discuss overall DB2 PERFORMANCE considerations
- Optionally, run the EXPLAIN PLAN SQL statement and analyze results
Experienced Data Processing personnel who need an overview of the Concepts and Terminology of DB2.
At least six months of Data Processing experience is recommended. No previous database experience is needed.
- DB2 concepts, terminology and components
- Primary Key (PK), Unique Key (UK) and Foreign Key (FK) concept
- SELECT statement can retrieve rows of data from DB2 tables
- WHERE clause can SELECT specific rows of a DB2 table
- ORDER BY, GROUP BY, HAVING clauses
- CASE expressions and SCALAR / COLUMN FUNCTIONS
- Access multiple tables - JOIN, UNION, sub-queries, and nested tables
- Tables, Indexes, Views
- Changed using the INSERT, UPDATE, and DELETE
- Security provided by the GRANT and REVOKE
- Design considerations of REFERENTIAL INTEGRITY
- Program Preparation process
- "quirks" of DB2 Application programming
- Importance of the SQLCODE and how to test for it
- DB2 PERFORMANCE considerations
- EXPLAIN PLAN SQL statement and analyze results
- Version 6 Overview
- Version 7 Overview
- Version 8 Overview