This 2 day 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.
Read more


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

You should have experience with:

• coding and executing basic SQL statements.

These skills can be developed by attending

• SQL Workshop (CE120GB), or equivalent experience.
Read more

Delegates will learn how to

• 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
Read more


• 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

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

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)
o 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:

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
Read more

Why choose QA

Dates & Locations

Frequently asked questions

See all of our FAQs

How can I create an account on myQA.com?

There are a number of ways to create an account. If you are a self-funder, simply select the "Create account" option on the login page.

If you have been booked onto a course by your company, you will receive a confirmation email. From this email, select "Sign into myQA" and you will be taken to the "Create account" page. Complete all of the details and select "Create account".

If you have the booking number you can also go here and select the "I have a booking number" option. Enter the booking reference and your surname. If the details match, you will be taken to the "Create account" page from where you can enter your details and confirm your account.

Find more answers to frequently asked questions in our FAQs: Bookings & Cancellations page.

How do QA’s virtual classroom courses work?

Our virtual classroom courses allow you to access award-winning classroom training, without leaving your home or office. Our learning professionals are specially trained on how to interact with remote attendees and our remote labs ensure all participants can take part in hands-on exercises wherever they are.

We use the WebEx video conferencing platform by Cisco. Before you book, check that you meet the WebEx system requirements and run a test meeting (more details in the link below) to ensure the software is compatible with your firewall settings. If it doesn’t work, try adjusting your settings or contact your IT department about permitting the website.

Learn more about our Virtual Classrooms.

How do QA’s online courses work?

QA online courses, also commonly known as distance learning courses or elearning courses, take the form of interactive software designed for individual learning, but you will also have access to full support from our subject-matter experts for the duration of your course. When you book a QA online learning course you will receive immediate access to it through our e-learning platform and you can start to learn straight away, from any compatible device. Access to the online learning platform is valid for one year from the booking date.

All courses are built around case studies and presented in an engaging format, which includes storytelling elements, video, audio and humour. Every case study is supported by sample documents and a collection of Knowledge Nuggets that provide more in-depth detail on the wider processes.

Learn more about QA’s online courses.

When will I receive my joining instructions?

Joining instructions for QA courses are sent two weeks prior to the course start date, or immediately if the booking is confirmed within this timeframe. For course bookings made via QA but delivered by a third-party supplier, joining instructions are sent to attendees prior to the training course, but timescales vary depending on each supplier’s terms. Read more FAQs.

When will I receive my certificate?

Certificates of Achievement are issued at the end the course, either as a hard copy or via email. Read more here.

Contact Us

Please contact us for more information