Follow us: Web Age on FaceBook Web Age on LinkedIn Follow Web Age on Twitter

For more information: 1.866.206.4644 (in Canada)
1.877.517.6540 (in U.S.)
Home Training Mentoring Request Info Search
Home > Training >

WA1885 SQL and Application Programming Training and Courseware

First, the concepts of DB2 are presented and discussed. 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 can be covered as needed –

  • Version 8 – Table-Controlled Partitioning, Common Table Expression, Dynamic Scrollable Cursors, multi-row FETCH and INSERT, GET DIAGNOSTICS, Recursive SQL, Sequence Objects, Scalar Full Select, Select Statement In An Insert statement, Delimited LOAD / UNLOAD, MQT’s
  • Version 9 – PureXML, New Data Types - bigger BINARY, VARBINARY, BIGINT, DECFLOAT, INSTEAD OF triggers, INTERSECT and EXCEPT, TRUNCATE Statement, MERGE Statement, Native SQL Stored Procedures, Optimistic Concurrency Control, Automatic Object Creation, Skip Locked Data, REOPT (AUTO)
  • Version 10 - Preview
Topics
 
  • Introduction to DB2 - Structured Query Language (SQL)
  • Structured Query Language
    • SQL 1 - The SELECT Statement
    • Database 2 Interactive / SPUFI
    • SQL 2 – SQL Functions
    • SQL 3 - ORDER BY, GROUP BY, HAVING
    • SQL 4 - Join, Sub-select, UNION
    • SQL 5 - Data Definition Language
    • SQL 6 - INSERT, UPDATE, DELETE
    • SQL 8 – Other SQL Topics
  • DB2 Application Programming
    • SQL Programming I - Overview
    • SQL Programming II - Data and Procedure Division Changes
    • SQL Programming III - SELECTing Multiple Rows
    • Concurrency Control - Locking
    • SQL Programming IV - INSERT, UPDATE, DELETE
    • Additional Topics
    • SQL Programming V - Other Programming Considerations
    • DB2 Performance Introduction - EXPLAIN PLAN or VISUAL EXPLAIN
 
What you will learn
 

After completing this course, the student should be able to:

  • Explain DB2 concepts, terminology and components
  • Discuss the Primary Key (PK), Unique Key (UK) and Foreign Key (FK) concept
  • SELECT rows of data from DB2 tables
  • Use QMF and/or SPUFI  to "run" SQL statements
  • Use the WHERE clause to SELECT specific rows of a DB2 table
  • Build queries using the ORDER BY, GROUP BY, HAVING clauses
  • Use the CASE expressions and several SCALAR / COLUMN FUNCTIONS
  • Access multiple tables - JoiN, UNION, sub-queries, nested table expressions
  • create Tables, Indexes, Views
  • "Change" tables using the INSERT, UPDATE, DELETE statements
  • Describe the security provided by the GRANT and REVOKE
  • Discuss the design considerations of Referential Integrity
  • Perform DCLGENs to build table definitions and I/O areas
  • Modify a "shell" program to select a single row, multiple rows, and change rows
  • Discuss the importance of the SQLcode and how to test for it
  • Discuss overall DB2 performance considerations
  • Run the EXPLAIN PLAN or VISUAL EXPLAIN and analyze results
 
Audience
 

Experienced Data Processing personnel who need use SQL to design and develop programs to access DB2 data.

 
Prerequisites
 

At least six months of TSO/ISPF and COBOL programming experience is recommended.  No previous database experience is needed.

 
Duration
  Five Days.

Course Outline

DAY 1

  • Introduction to DB2 - Structured Query Language (SQL)
  • Structured Query Language
  • SQL 1 - The SELECT Statement
  • Database 2 Interactive / SPUFI
  • SQL 2 – SQL Functions
  • SQL 3 - ORDER BY, GROUP BY, HAVING

DAY 2

  • Structured Query Language
  • SQL 4 - Join, Sub-select, UNION
  • SQL 5 - Data Definition Language
  • SQL 6 - INSERT, UPDATE, DELETE
  • SQL 8 – Other SQL Topics

DAY 3

  • DB2 Application Programming
  • SQL Programming I - Overview
  • SQL Programming II - Data and Procedure Division Changes
  • SQL Programming III - SELECTing Multiple Rows

DAY 4

  • DB2 Application Programming (Continued)
  • Concurrency Control - Locking
  • SQL Programming IV - INSERT, UPDATE, DELETE

DAY 5

  • DB2 Application Programming (Continued)
  • Additional Topics
  • SQL Programming V - Other Programming Considerations
  • DB2 Performance Introduction - EXPLAIN PLAN or VISUAL EXPLAIN
We regularly offer classes in these and other cities. Atlanta, Austin, Baltimore, Calgary, Chicago, Cleveland, Dallas, Denver, Detroit, Houston, Jacksonville, Miami, Montreal, New York City, Orlando, Ottawa, Philadelphia, Phoenix, Pittsburgh, Seattle, Toronto, Vancouver, Washington DC.
Outline Course Outline

Buy on-site and customized class

Home Training Mentoring Contact Us Terms of Use
*Your name:

*Your e-mail:

*Phone:

*Company name:

Additional notes:

We have received your message. A sales representative will contact you soon.

Thank you!.