DB2 SQL Workshop for Experienced Users

Overview

This course teaches you how to make use of advanced SQL techniques to access DB2 databases in different environments. This course is appropriate for customers working in all DB2 environments, specifically for z/OS, Linux, UNIX, and Windows.

Learning Journeys or Training Paths that reference this course:

Audience

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

Prerequisites

You should have experience with:

  • coding and executing basic SQL statements.

These skills can be developed by attending

  • SQL Workshop (CE120), or equivalent experience.

Key topics

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

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

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

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

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

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

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

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

Objectives

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

Related Articles:

IBM Training Blog:

Enroll

You can enroll in an instructor-led classroom at different geographic locations, instructor-led online course in any timezone or a self-paced online course.

This class has been identified by our Global Training Partner as "Guaranteed to run". View the terms and conditions for full details.

Start Date GTR Country City Duration Language Partner Action
Australia Mel 24 Hours English Global Knowledge/IT Learning Solution Pty Ltd

Enroll



Skip Sign in

Angola Luanda, AO 24 Hours English Ingram Micro

Enroll



Skip Sign in

Singapore Singapore, SG 24 Hours English Ingram Micro/Trainocate

Enroll



Skip Sign in

South Africa Addis Ababa, ET 24 Hours English Ingram Micro

Enroll



Skip Sign in

South Africa Johannesburg, ZA 24 Hours English Ingram Micro

Enroll



Skip Sign in

Botswana Gaborone, BW 24 Hours English Ingram Micro

Enroll



Skip Sign in

Kenya Nairobi, KE 24 Hours English Ingram Micro

Enroll



Skip Sign in

Zimbabwe Harare, ZW 24 Hours English Ingram Micro

Enroll



Skip Sign in

Namibia Windhoek, NA 24 Hours English Ingram Micro

Enroll



Skip Sign in

Nigeria Lagos, NG 24 Hours English Ingram Micro

Enroll



Skip Sign in

Azerbaijan Baku 24 Hours Russian Global Knowledge/KUDITS-OBRAZ LLC.

Enroll



Skip Sign in

Georgia Tbilisi 24 Hours Russian Global Knowledge/KUDITS-OBRAZ LLC.

Enroll



Skip Sign in

Kyrgyzstan Bishkek 24 Hours Russian Global Knowledge/KUDITS-OBRAZ LLC.

Enroll



Skip Sign in

Kazakhstan Almaty 24 Hours Russian Global Knowledge/KUDITS-OBRAZ LLC.

Enroll



Skip Sign in

Russia Moscow 24 Hours Russian Global Knowledge/KUDITS-OBRAZ LLC.

Enroll



Skip Sign in

Ukraine Kiev 24 Hours Russian Global Knowledge/KUDITS-OBRAZ LLC.

Enroll



Skip Sign in

Uzbekistan Tashkent 24 Hours Russian Global Knowledge/KUDITS-OBRAZ LLC.

Enroll



Skip Sign in

Slovakia Bratislava 24 Hours Slovak Global Knowledge/GOPAS SR, a.s.

Enroll



Skip Sign in

Czech Republic Praha 24 Hours Czech Global Knowledge/GOPAS SR, a.s.

Enroll



Skip Sign in

Spain Barcelona, ES 20 Hours Spanish Ingram Micro

Enroll



Skip Sign in

Switzerland Zurich, CH 20 Hours German Ingram Micro

Enroll



Skip Sign in

Slovenia Ljubljana, SI 20 Hours English Ingram Micro

Enroll



Skip Sign in

Czech Republic Prague, CZ 20 Hours English Ingram Micro

Enroll



Skip Sign in

Hungary Budapest, HU 20 Hours English Ingram Micro

Enroll



Skip Sign in

France Paris, FR 20 Hours French Ingram Micro

Enroll



Skip Sign in

Serbia Beograd, RS 20 Hours English Ingram Micro

Enroll



Skip Sign in

Portugal Lisboa, PT 20 Hours Portuguese Ingram Micro

Enroll



Skip Sign in

Slovakia Bratislava, SK 20 Hours English Ingram Micro

Enroll



Skip Sign in

Austria Vienna, AT 20 Hours German Ingram Micro

Enroll



Skip Sign in

Italy Rome, IT 20 Hours Italian Ingram Micro

Enroll



Skip Sign in

Poland Warsaw, PL 20 Hours English Ingram Micro

Enroll



Skip Sign in

Germany Frankfurt 20 Hours German Ingram Micro

Enroll



Skip Sign in

Netherlands Zoetermeer 24 Hours Dutch Global Knowledge

Enroll



Skip Sign in

United States Sacramento 20 Hours English TechData Inc./ExitCertified

Enroll



Skip Sign in

United Kingdom London 20 Hours English TechData Inc.

Enroll



Skip Sign in

United Kingdom Bracknell 20 Hours English TechData Inc.

Enroll



Skip Sign in

India Bangalore 20 Hours English TechData Inc.

Enroll



Skip Sign in

India Hyderabad 20 Hours English TechData Inc.

Enroll



Skip Sign in

Germany Leinfelden-Echterdingen 20 Hours German TechData Inc.

Enroll



Skip Sign in

Germany Berlin 20 Hours German TechData Inc.

Enroll



Skip Sign in

Germany Krefeld 20 Hours German TechData Inc.

Enroll



Skip Sign in

Germany Hamburg 20 Hours German TechData Inc.

Enroll



Skip Sign in

Germany München 20 Hours German TechData Inc.

Enroll



Skip Sign in

France Paris 24 Hours French Arrow ECS

Enroll



Skip Sign in

United Kingdom Harrogate 16 Hours English Arrow ECS

Enroll



Skip Sign in

United Kingdom Dublin 16 Hours English Arrow ECS

Enroll



Skip Sign in

United Kingdom Stockport 16 Hours English Arrow ECS

Enroll



Skip Sign in

United Kingdom Birmingham - Quayside Tower 16 Hours English Arrow ECS

Enroll



Skip Sign in

United Kingdom Harrogate 16 Hours English Arrow ECS

Enroll



Skip Sign in

United Kingdom Dublin 16 Hours English Arrow ECS

Enroll



Skip Sign in

United Kingdom Stockport 16 Hours English Arrow ECS

Enroll



Skip Sign in

United Kingdom Birmingham - Quayside Tower 16 Hours English Arrow ECS

Enroll



Skip Sign in

Sweden Stockholm/Kista 24 Hours Swedish Arrow ECS

Enroll



Skip Sign in

Denmark København - Ballerup 20 Hours English Arrow ECS

Enroll



Skip Sign in

Switzerland Rotkreuz 20 Hours German TechData Inc.

Enroll



Skip Sign in

Switzerland Rotkreuz 20 Hours German TechData Inc.

Enroll



Skip Sign in

Switzerland Rotkreuz 20 Hours German TechData Inc.

Enroll



Skip Sign in

Switzerland Rotkreuz 20 Hours German TechData Inc.

Enroll



Skip Sign in

Switzerland Gland 20 Hours English TechData Inc.

Enroll



Skip Sign in

Switzerland Gland 20 Hours English TechData Inc.

Enroll



Skip Sign in

Switzerland Gland 20 Hours English TechData Inc.

Enroll



Skip Sign in

Switzerland Gland 20 Hours English TechData Inc.

Enroll



Skip Sign in

Austria Wien 20 Hours German TechData Inc.

Enroll



Skip Sign in

Austria Wien 20 Hours German TechData Inc.

Enroll



Skip Sign in

Austria Wien 20 Hours German TechData Inc.

Enroll



Skip Sign in

Austria Wien 20 Hours German TechData Inc.

Enroll



Skip Sign in

Germany Berlin 16 Hours German Global Knowledge/Integrata AG

Enroll



Skip Sign in

Germany Stuttgart 24 Hours German Global Knowledge/Integrata AG

Enroll



Skip Sign in

Australia Syd 24 Hours English Global Knowledge/IT Learning Solution Pty Ltd

Enroll



Skip Sign in

Australia Mel 24 Hours English Global Knowledge/IT Learning Solution Pty Ltd

Enroll



Skip Sign in

Australia Syd 24 Hours English Global Knowledge/IT Learning Solution Pty Ltd

Enroll



Skip Sign in

France Paris 24 Hours French Global Knowledge

Enroll



Skip Sign in

United Kingdom London 24 Hours English Global Knowledge

Enroll



Skip Sign in

United Kingdom Dublin 24 Hours English Global Knowledge

Enroll



Skip Sign in

United Kingdom Leeds 24 Hours English Global Knowledge

Enroll



Skip Sign in

United Kingdom Manchester 24 Hours English Global Knowledge

Enroll



Skip Sign in

United Kingdom Birmingham 24 Hours English Global Knowledge

Enroll



Skip Sign in

Hungary Budapest 20 Hours Hungarian TechData Inc.

Enroll



Skip Sign in

Hungary Budapest 20 Hours Hungarian TechData Inc.

Enroll



Skip Sign in

Hungary Budapest 20 Hours Hungarian TechData Inc.

Enroll



Skip Sign in

Hungary Budapest 20 Hours Hungarian TechData Inc.

Enroll



Skip Sign in

United Kingdom London - Dowgate Hill 16 Hours English Arrow ECS

Enroll



Skip Sign in

United Kingdom London - Dowgate Hill 16 Hours English Arrow ECS

Enroll



Skip Sign in

Poland Katowice 24 Hours Polish Global Knowledge/Altkom Akademia S.A.

Enroll



Skip Sign in

Turkey Istanbul 20 Hours English Arrow ECS/Pyxis

Enroll



Skip Sign in

Turkey Istanbul 20 Hours Turkish Arrow ECS/Pyxis

Enroll



Skip Sign in

Portugal Lisbon 20 Hours English Arrow ECS/Pyxis

Enroll



Skip Sign in

Portugal Lisbon 20 Hours Portuguese Arrow ECS/Pyxis

Enroll



Skip Sign in

Angola Luanda 20 Hours Portuguese Arrow ECS/Pyxis

Enroll



Skip Sign in

India Bangalore 20 Hours English Arrow ECS/Amstar

Enroll



Skip Sign in

India Bangalore 20 Hours English Arrow ECS/Amstar

Enroll



Skip Sign in

India Bangalore 20 Hours English Arrow ECS/Amstar

Enroll



Skip Sign in

India Bangalore 20 Hours English Arrow ECS/Amstar

Enroll



Skip Sign in

India Bangalore 20 Hours English Arrow ECS/Amstar

Enroll



Skip Sign in

India Bangalore 20 Hours English Arrow ECS/Amstar

Enroll



Skip Sign in

India Bangalore 20 Hours English Arrow ECS/Amstar

Enroll



Skip Sign in

India Bangalore 20 Hours English Arrow ECS/Amstar

Enroll



Skip Sign in

Australia Sydney 24 Hours English LearnQuest

Enroll



Skip Sign in

Australia Sydney 24 Hours English LearnQuest

Enroll



Skip Sign in

Australia Melbourne 24 Hours English LearnQuest

Enroll



Skip Sign in

Australia Canberra 24 Hours English LearnQuest

Enroll



Skip Sign in

Australia Perth 24 Hours English LearnQuest

Enroll



Skip Sign in

Australia Adelaide 24 Hours English LearnQuest

Enroll



Skip Sign in

Australia Brisbane 24 Hours English LearnQuest

Enroll



Skip Sign in

France Paris 24 Hours French Arrow ECS

Enroll



Skip Sign in

France Paris 24 Hours French Arrow ECS

Enroll



Skip Sign in

Switzerland Zürich 20 Hours German Arrow ECS/Esciris

Enroll



Skip Sign in

Switzerland Ostermundingen 20 Hours German Arrow ECS/Esciris

Enroll



Skip Sign in

Switzerland Zürich 20 Hours German Arrow ECS/Esciris

Enroll



Skip Sign in

Germany München 20 Hours German Arrow ECS/Esciris

Enroll



Skip Sign in

Germany Berlin 20 Hours German Arrow ECS/Esciris

Enroll



Skip Sign in

Germany Holzgerlingen 20 Hours German Arrow ECS/Esciris

Enroll



Skip Sign in

Germany Frankfurt 20 Hours German Arrow ECS/Esciris

Enroll



Skip Sign in

Germany Hamburg 20 Hours German Arrow ECS/Esciris

Enroll



Skip Sign in

Austria Wien 20 Hours German Arrow ECS/Esciris

Enroll



Skip Sign in

Austria Wien 20 Hours German Arrow ECS/Esciris

Enroll



Skip Sign in

Austria Wien 20 Hours German Arrow ECS/Esciris

Enroll



Skip Sign in

Austria Wien 20 Hours German Arrow ECS/Esciris

Enroll



Skip Sign in

Italy Roma 20 Hours Italian Arrow ECS/Fast Lane

Enroll



Skip Sign in

Italy Milano 20 Hours Italian Arrow ECS/Fast Lane

Enroll



Skip Sign in

Italy Roma 20 Hours Italian Arrow ECS/Fast Lane

Enroll



Skip Sign in

Italy Milano 20 Hours Italian Arrow ECS/Fast Lane

Enroll



Skip Sign in

Duration Delivery Type Language Partner Action
20 HoursSelf-paced Virtual CourseEnglishLearnQuest

Enroll



Skip Sign in

Start Date My Time Zone GTR Country Duration Language Partner Action
Worldwide20 HoursEnglishTechData Inc./ExitCertified

Enroll



Skip Sign in

Worldwide20 HoursEnglishTechData Inc./ExitCertified

Enroll



Skip Sign in

Worldwide24 HoursFrenchArrow ECS

Enroll



Skip Sign in

Worldwide24 HoursFrenchArrow ECS

Enroll



Skip Sign in

Worldwide16 HoursEnglishArrow ECS

Enroll



Skip Sign in

Worldwide16 HoursEnglishArrow ECS

Enroll



Skip Sign in

Worldwide24 HoursEnglishArrow ECS

Enroll



Skip Sign in

Worldwide20 HoursEnglishArrow ECS

Enroll



Skip Sign in

Canada20 HoursEnglishTechData Inc./ExitCertified

Enroll



Skip Sign in

Worldwide24 HoursEnglishGlobal Knowledge

Enroll



Skip Sign in

Worldwide20 HoursEnglishTechData Inc./ExitCertified

Enroll



Skip Sign in

Worldwide20 HoursTurkishArrow ECS/Pyxis

Enroll



Skip Sign in

Worldwide24 HoursEnglishLearnQuest

Enroll



Skip Sign in

Worldwide24 HoursGermanLearnQuest

Enroll



Skip Sign in

Worldwide24 HoursFrenchLearnQuest

Enroll



Skip Sign in

Worldwide24 HoursEnglishLearnQuest

Enroll



Skip Sign in

Worldwide24 HoursFrenchLearnQuest

Enroll



Skip Sign in

Worldwide24 HoursGermanLearnQuest

Enroll



Skip Sign in

Worldwide24 HoursEnglishLearnQuest

Enroll



Skip Sign in

Worldwide24 HoursEnglishLearnQuest

Enroll



Skip Sign in

Worldwide24 HoursEnglishLearnQuest

Enroll



Skip Sign in

Worldwide20 HoursEnglishArrow ECS/Pyxis

Enroll



Skip Sign in

Worldwide20 HoursPortugueseArrow ECS/Pyxis

Enroll



Skip Sign in

Worldwide20 HoursEnglishArrow ECS/Amstar

Enroll



Skip Sign in

Worldwide20 HoursEnglishArrow ECS/Amstar

Enroll



Skip Sign in

Worldwide20 HoursEnglishArrow ECS/Amstar

Enroll



Skip Sign in

Worldwide20 HoursEnglishArrow ECS/Amstar

Enroll



Skip Sign in

Worldwide20 HoursEnglishArrow ECS/Amstar

Enroll



Skip Sign in

Worldwide20 HoursEnglishArrow ECS/Amstar

Enroll



Skip Sign in

Worldwide20 HoursEnglishArrow ECS/Amstar

Enroll



Skip Sign in

Worldwide20 HoursEnglishArrow ECS/Amstar

Enroll



Skip Sign in

Worldwide20 HoursEnglishGlobal Knowledge

Enroll



Skip Sign in

Worldwide20 HoursEnglishGlobal Knowledge

Enroll



Skip Sign in

Worldwide20 HoursEnglishIngram Micro

Enroll



Skip Sign in

Worldwide20 HoursEnglishIngram Micro

Enroll



Skip Sign in