DAY 1
I. Single Table Access
Course Introduction
1. DB2 Programming review
2. Create tables, views and indexes.
Hands-on Lab – Create tables and Read with a propgram
3. DB2 Referential Integrity
Hands-on Lab – DB2 RI
4. Indicator Variables
Hands-on Lab – Handling Nulls
5. Dynamic SQL
Hands-on Lab – Dynamic SQL
6. Nested Table Expressions
Hands-on Lab – Nested table Expression
7. The CASE expression and column functions and scalar functions
Hands-on Lab – CASE and Functions
DAY 2
II. Multiple Table Access
8. Nested Table Expressions
Hands-on Lab – Nested table Expression
9. Scrollable Cursors
Hands-on Lab – Scrollable Cursors
10. Unions (‘everywhere”)
Hands-on Lab - UNION
11. Inner and Outer Joins
Hands-on Lab – Inner/Outer Joins
12. Joining more than 2 tables
Hands-on Lab – More that 2 table Joins
13. Fetching 1 (or 2 or 15) Row only
Hands-on Lab – Limiting Rows Fetched
DAY 3
III. Additional Advanced Programming Considerations
14. Other Advanced Programming Items - Client Selected Topics
Hands-on Lab – Other Programming Items
IV. Performance Considerations
15. Performance Advanced DB2 Programming Considerations
16. EXPLAIN Statement
17. PLAN_TABLE and DSN_STATEMNT_TABLE
Hands-on Lab - Performance
Appendices
Appendix A - IBM Sample Tables
Appendix B – Bibliography
Appendix C - The Programming Workshop
Appendix D - EXPLAIN PLAN Statement - PLAN_TABLE & DSN_STATEMNT_TABLE
Appendix E – SQLCODES / SQLSTATES