DB2 Concepts and Facilities

Overview

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 -

  • 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
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.

LEARNING OBJECTIVES

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
Audience

Experienced Data Processing personnel who need an overview of the Concepts and Terminology of DB2.

Prerequisites

At least six months of Data Processing experience is recommended. No previous database experience is needed.

Course duration

1-2 days

Course outline

 
 
  1. DB2 concepts, terminology and components

  2. Primary Key (PK), Unique Key (UK) and Foreign Key (FK) concept

  3. SELECT statement can retrieve rows of data from DB2 tables

  4. WHERE clause can SELECT specific rows of a DB2 table

  5. ORDER BY, GROUP BY, HAVING clauses

  6. CASE expressions and SCALAR / COLUMN FUNCTIONS

  7. Access multiple tables - JOIN, UNION, sub-queries, and nested tables

  8. Tables, Indexes, Views

  9. Changed using the INSERT, UPDATE, and DELETE

  10. Security provided by the GRANT and REVOKE

  11. Design considerations of REFERENTIAL INTEGRITY

  12. Program Preparation process

  13. "quirks" of DB2 Application programming

  14. Importance of the SQLCODE and how to test for it

  15. DB2 PERFORMANCE considerations

  16. EXPLAIN PLAN SQL statement and analyze results

  17. Version 6 Overview

  18. Version 7 Overview

  19. Version 8 Overview

Wintrac Inc.
16523 SW McGwire Ct.
Beaverton OR 97007
Wintrac, Inc. All rights reserved.                                                                               Site Map   |   Terms of Use   |   Privacy Policy