Overview
First, the concepts of DB2 are presented and discussed.
Experienced Data Processing personnel who need use SQL to design and develop programs to access DB2 data.
At least six months of TSO/ISPF and COBOL programming experience is recommended. No previous database experience is needed.
5 days
The Structured Query Language (SQL) is presented as the means to access DB2 data (and to create and secure DB2 components).
Several 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. Referential Integrity concepts and implementation are covered.
DB2 (SQL) programming / embedding SQL in a COBOL application program is presented and discussed in detail. A "shell" program is modified to SELECT a single row, FETCH multiple rows, INSERT, UPDATE, and DELETE row(s), use Referential Integrity, and use column functions and grouping.
DB2 performance guidelines are discussed. The SQL statement EXPLAIN PLAN is used to help to evaluate the efficiency of SQL statements.
The following "Release Dependent" features are also covered -
LEARNING OBJECTIVES
As a result of this class, the attendee will be able to
Audience
Prerequisites
Course duration
Course outline
DAY 1
Course Introduction
Hands-on Lab - SELECT
Hands-on Lab - SELECT / Special Features
Hands-on Lab - ORDER BY, GROUP BY, HAVING
DAY 2
Hands-on Lab - Join, Sub-select, UNION
Hands-on Lab - Creating DB2 Components
- INSERT, UPDATE, DELETE
DAY 3
Hands-on Lab - SELECT a single row into a program
Hands-on Lab - SELECT more than one row - the CURSOR
DAY 4
Hands-on Lab - updating and Referential Integrity
DAY 5
Hands-on Lab - updating and Referential Integrity
Appendices
Appendix A - IBM Sample Tables
Appendix I - DB2 for WINDOWs Overview
Appendix B - Bibliography
Appendix J - Additional Features - UDT / UDF, Trigger, Casting
Appendix C - The Programming Workshop
Appendix K - Group By Extensions
Appendix D - Plan_Table & Dsn_Statemnt_Table
Appendix Appendix L - Visual Explain Overview
Appendix E - Hints to Success
Appendix M - Functions
Appendix F - SQLCODES / SQLSTATES
Appendix Z8- Changes Summary - DB2 V 8
Appendix G - QMF Overview
Appendix Z9 - Changes Summary - DB2 V 9
Appendix H - Stored Procedures
Appendix Z9 - AppV9B - DB2 V9 Summary from IDUG Solution Journal