- Code
- CE131G
- Duration
- 3 days
- Delivery
- Online, classroom or onsite
- Language
- English, Spanish and French
Db2 SQL Workshop for Experienced Users
IBM no longer lists this course in its catalogue. We still deliver it as private training, adapted to the latest release.
Three days of the SQL that separates someone who queries from someone who makes the engine work: OLAP functions, outer and anti joins, materialised query tables, correlated subqueries, recursive CTEs and how the optimiser reads all of it.
IBM Who it is for
Application developers, DBAs, data analysts and technical support staff with basic SQL experience who need to master advanced SQL on Db2.
- SQL developers with a solid base who will work with OLAP functions (RANK, ROLLUP, CUBE) and recursive CTEs.
- DBAs reviewing application SQL before a performance audit.
- BI engineers moving complex reports from another engine to Db2.
Prerequisites
Hands-on experience writing and running basic SQL statements (equivalent to CE121G).
Course outline
- Advanced SQL on Db2: SELECT clauses, Db2 platforms (z/OS, LUW, i), OLAP functions (CUBE, ROLLUP, RANK, DENSE_RANK, ROW_NUMBER)
- Creating and managing objects: DDL, ALTER, triggers (BEFORE/AFTER/INSTEAD OF), CHECK constraints
- Advanced joins: INNER, LEFT, RIGHT, FULL OUTER, anti joins, self joins, set operators (UNION, UNION ALL, EXCEPT, INTERSECT)
- CASE, CAST, summary tables and MQTs (materialised query tables)
- Subqueries with ALL, ANY/SOME, EXISTS; correlated subqueries
- Scalar functions: SUBSTR, POSSTR, COALESCE, DECIMAL, ROUND, CHAR, DATE, TIME
- CTEs (WITH) and recursive SQL; nested table expressions
- UDTs, UDFs and stored procedures; query tuning and index structure
- Day 1: advanced SQL, object management, triggers and constraints
- Day 2: advanced joins, CASE/CAST/MQTs, subqueries, scalar functions
- Day 3: CTEs and recursive SQL, UDTs and UDFs, and performance tuning
Frequently asked questions
Do I need CE121G first?
CE121G or equivalent experience writing intermediate SQL. Joins, grouping functions and simple subqueries are assumed.
Does it apply to Db2 z/OS, LUW and iSeries?
Yes, it is cross-platform. The platform-specific differences are covered in class.
Group size and language?
Closed groups of four to ten people, in Spanish, English or French. We run it with fewer than four as well, though it usually pays to wait and fill the group.
Related courses
- CV964G — Db2 12 for z/OS SQL Performance and Tuning (tuning SQL on the mainframe)
- CLA96G — IBM Db2 12 Foundation for Relational DBAs (if the role moves to LUW administration)
- CE121G — Db2 SQL Workshop (groundwork, if the team needs levelling first)
How we run our courses
/01
Training with SIXE, IBM Business Partner
- Labs on Db2 z/OS, LUW or iSeries, depending on where your team will write the SQL.
- Taught directly by IBM Champion instructors from the SIXE team.
- Credly badges available: credly.com/organizations/sixe/badges
- Flexible format — online, classroom or onsite — in closed groups, priced per attendee, in the language of your choice (ES / EN / FR).
/02
Instructors specialised in IBM Db2 and advanced SQL
Engineers from the SIXE team with real experience tuning complex SQL — OLAP, CTEs, MQTs — on Db2 z/OS and LUW. Several recognised as IBM Champion.
