This course is not scheduled. Inquire about Onsite training at your facility.
Overview
| Course code | 3E120 | Skill level | Basic |
|---|---|---|---|
| Duration | 2.0 days | Delivery type | Instructor Led - Online Training
(Hands-on labs) |
| Course type | Public only | ||
| Public price | USD $995.00 plus tax | ||
This course is the Instructor Led Online (ILO) version of classroom course CE120.
This course provides an introduction to the SQL language and applies to both DB2 and Informix.
This course is appropriate for customers working in all DB2 environments, that is, z/OS, VM/VSE, iSeries, Linux, UNIX, and Windows. It is also appropriate for customers working with Informix.
View this course in other countries
Training Paths that reference this course are:
Special note
IBM Education Advantage Program eligibility:
- Yes - IBM Education Pack - Online Account
This is an instructor led online course. Please do not make travel arrangements for this course. Your system should have a microphone and speakers for interfacing with the instructor and other students. After you receive confirmation that you are enrolled, you will be sent further instructions to access audio, video and remote labs. All Instructor Led On Line US courses start at 9:00 am Central time.
Audience
This is a basic course for anyone needing to write, support, or understand SQL queries. This includes but is not limited to end-users, programmers, application designers, database administrators, and system administrators who do not yet have knowledge of the SQL Data Manipulation Language (DML).
Prerequisites
You should have:
- Basic computer literacy
- Basic editing skills
- Database skills are not required
Skills taught
On completion of this course, you should be able to:
- Code SQL statements to retrieve data from a DB2 table, including the SELECT, FROM, WHERE, GROUP BY, HAVING and ORDER BY clauses
- Code inner Joins, including joining a table to itself
- Use SQL arithmetic operations
- Use scalar and column functions
- Use UNION and UNION ALL
- INSERT, UPDATE and DELETE rows
- Code simple CREATE TABLE and CREATE VIEW statements
Course outline
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
Join
- Retrieve data from more than one table via inner and outer joins
- Use outer joins
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
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
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
Agenda
Day 1
- Welcome
- Unit 1 - Introduction (SQL Basics review, and OLAP features)
- Exercise 1
- Unit 2 - Create Objects
- Exercise 2
- Unit 3 - Join
- Exercise 3
Day 2
- Unit 4 - CASE, CAST, Summary Tables, and MQTs
- Exercise 4
- Unit 5 - Using Subqueries
- Exercise 5
- Unit 6 - Scalar Functions
- Exercise 6
Day 3
- Unit 7 - Table Expressions and Recursive SQL
- Exercise 7
- Unit 8 - UDTs/UDFs and Performance
- Exercise 8
