DB2 SQL Workshop for Experienced Users - On-Demand Course

Learn IBM at your own pace with our On-Demand training.

Course Details

The DB2 SQL Workshop for Experienced Users course is a 3-day course that is designed to teach students how to make use of advanced SQL techniques to access DB2 databases in different environments. The course is appropriate for customers working in all DB2 environments, specifically for z/OS, Linux, UNIX, and Windows.

Topics covered in the course include:

  • Discussing basic relational database concepts
  • Using some of the OLAP features of DB2, such as GROUPing and RANKing functions
  • Creating tables, views and indexes
  • Using referential integrity, check constraints and triggers
  • Using outer joins, and join tables to themselves
  • Using CASE expressions, and the CAST function
  • Identifying the impact of Summary Tables, Materialized Query Tables, and temporary tables
  • Using complex subqueries
  • Using a greater number of scalar SQL functions
  • Using advanced SQL constructs, such as recursive SQL and table expressions
  • Define User-Defined Distinct Types and User-Defined Functions
  • Avoiding several of the most common causes for poorly-performing SQL

Target Student:

This intermediate level course is for experienced SQL end users, application programmers, database administrators, and user support staff who need more advanced knowledge of SQL.

Prerequisites:

  • Coding and executing basic SQL statements.

These skills can be developed by attending

  • SQL Workshop (CE120), or equivalent experience.

Course Outline

1. Introduction

  • Identify the purpose of the clauses in the SELECT statement
  • Describe the key differences among the IBM DB2 platforms
  • Describe and use some of the OLAP features of DB2, such as GROUPING functions like CUBE and ROLLUP, and the RANK, DENSE_RANK and ROW_NUMBER functions

2. Create Objects

  • Code statements to: Create tables and views, Alter tables, Create indexes, Implement referential integrity (RI), and Define triggers and check constraints
  • Identify impacts and advantages of referential integrity, including impacts of delete rules
  • Identify considerations when using triggers and check constraints
  • Define and make use of INSTEAD OF triggers

3. Join

  • Retrieve data from more than one table via inner and outer joins
  • Use outer joins (LEFT, RIGHT, FULL)
  • Use ANTI JOINS
  • Join a table to itself
  • Use UNION and UNION ALL
  • Use EXCEPT and INTERCEPT

4. CASE, CAST, Summary Tables, and Materialized Query Tables

  • Identify when CASE expressions can be used
  • Code CASE expressions in SELECT list and in the WHERE clause
  • Identify when CAST specifications can be used
  • Identify the advantages of using Summary (Materialized Query) Tables and Temporary tables
  • Identify the advantages of using Materialized Query Tables (MQTs)
    • Identify when and how to use Temporary tables

5. Using Subqueries

  • Code subqueries using the ALL, ANY/SOME, and EXISTS keywords
  • Code correlated subqueries
  • Choose the proper type of subquery to use in each case

6. Scalar Functions

  • Extend your knowledge of scalar functions which: Manipulate arithmetic data, Manipulate date values, and Manipulate character data
  • Examples of scalar functions that are addressed in this course:
    • SUBSTR
    • POSSTR
    • COALESCE/VALUE
    • DECIMAL
    • ROUND
    • DIGITS
    • CHAR
    • DATE/TIME

7. Table Expressions and Recursive SQL

  • Identify reasons for using table expressions and recursive SQL
  • Use nested and common table expressions
  • Identify the difference between views and table expressions
  • Code recursive SQL
  • Control the depth of recursion when coding recursive SQL

8. UDTs/UDFs and Performance

  • Describe the concepts behind User-Defined Types, User-Defined Functions and Stored Procedures
  • Predict when queries will use indexes to get better performance
  • Identify concepts of predicate processing
  • State introductory concepts about index structure
  • State general best practices advice

 

You should have experience with:

  • Coding and executing basic SQL statements.

These skills can be developed by attending

  • SQL Workshop (CE120), or equivalent experience.
" 1454,1567,,9043,Fundamental System Skills in Z/OS,0,0,IBM,ibm.png,,ibm,"

The Fundamental System Skills in Z/OS course is a 5-day course that is designed to teach students the fundamental practical skills to navigate and work in a z/OS environment.

The course includes the use of ISPF/PDF dialogs, TSO/E commands, JCL, UNIX System Services shell, and BookManager.

Topics covered in the course include:

  • Reviewing the main concepts of z/OS
  • Logging on to TSO and starting ISPF/PDF
  • Navigating through ISPF/PDF dialogs and using the basic ISPF/PDF functions and the ISPF Editor
  • Using ISPF/PDF to allocate data sets and edit data sets (including hierarchical file system (HFS) files) via the ISPF Editor primary and line commands
  • Using ISPF to create and manipulate (copy, rename, delete, list, sort and merge) data sets
  • Identifying security considerations for Multiple Virtual Storage (MVS) data sets and HFS files
  • Describing and using TSO/E commands
  • Performing simple modifications to existing ISPF/PDF panels
  • Invoking a REXX exec and TSO CLIST
  • Tailoring existing JCL and submit batch jobs
  • Reviewing job status and job output using SDSF
  • Invoking UNIX processes
  • Manipulating HFS directories and file systems using the UNIX System Services ISHELL

Target Student:

This basic course is for IT personnel with a theoretical background of z/OS (for example, as taught in An Introduction to the z/OS Environment (ES050) ) and some general practical IS experience.

Prerequisites:

  • An Introduction to the z/OS Environment (

     

-10%

DB2 SQL Workshop for Experienced Users

On-Demand Training Course

$ 900
30/day licence
  • 24/7 Access
  • Hands-On Practice Exercises
  • Free Repeats
  • Professional Instruction