DB2 SQL Application Programming
This course enables you to acquire the skills necessary to produce application
programs to manipulate DB2 databases using the SQL language. Students will
learn how to embed Structured Query Language (SQL) statements and prepare
programs for execution. The course uses a combination of lecture and handson
workshop activities to enable students to gain confidence in using the SQL
language and writing application programs using embedded SQL.
- Cost: Price on application
- Duration: 4 days
- This course is not available as part of our public schedule but can be provided on a customised client specific basis.
Prior to attending this course, you should have some experience with COBOL.
TSO/ISPF knowledge would also be an advantage.
Data storage and retrieval,
Origin and history of relational RDBMS products,
Basic relational concepts and terminology,
Tables,
Referential Integrity,
Inherent advantages of relational model.
DB2 Address Spaces,
DB2 Attachments,
Logical and physical DB2 objects,
The DB2 Catalog.
SQL data types,
NULL values.
Using features of the SELECT verb,
Using Boolean operators,
Wildcards, LIKE, Case Expression, Distinct, range comparisons,
ORDER BY.
Aggregate/Column functions: GROUP BY – grouping results, HAVING,
Scalar functions.
Inner and Outer Joins,
Sub Queries,
Nested table Expressions,
UNION.
INSERT, UPDATE, and DELETE,
COMMIT and ROLLBACK,
CICS Considerations,
2 phase Commit.
DCLGEN and host structures,
Embedded SELECT, SQLCA,
Error-handling,
Declaring and working with Cursors,
Commit and Rollback strategies,
Handling NULLS.
DB2 Precompiler,
Compile and Link,
Bind Package,
Bind Plan.
An introduction to creating Stored Procedures,
SYSROUTINES,
Administration,
Calling Stored Procedures,
Passing Parameters,
Triggers.
Data structure design issues,
Normalisation,
DB2 Optimiser and Access Paths,
Indexes, Stage1 and Stage 2 predicates,
DB2 Lock Management,
Interpreting EXPLAIN data.
Scrollable Cursors,
Security,
DB2 Catalog