This course is not scheduled. Inquire about Onsite training at your facility.
Overview
| Course code | 3E130 | Skill level | Intermediate |
|---|---|---|---|
| Duration | 2.5 days | Delivery type | Instructor Led - Online Training
(Hands-on labs) |
| Course type | Public or Private on-site | ||
| Public price | USD $1,950.00 plus tax | ||
This course is the Instructor Led Online (ILO) version of classroom course CE130.
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, that is OS/390, z/OS, VM/VSE, iSeries, Linux, UNIX, and Windows.
View this course in other countries
Training Paths that reference this course are:
Audience
This is an intermediate course is for experienced SQL end users, application programmers, database administrators, and user support staff who need more advanced knowledge of SQL.
Prerequisites
Before taking this course, you should have experience with coding and executing basic SQL statements. These skills can be developed by attending DB2 SQL Workshop (CF12), or equivalent experience.
Skills taught
After completing this course, you should be able 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
Course outline
Introduction
- Define the terms: Database, table, row, column, view
- State the more common DB2 and Informix data types
- List the most commonly used SQL statements in the: Data Definition Language (DDL), Data Manipulation Language (DML), and Data Control Language (DCL)
- State three null characteristics, and their meaning
Simple SQL Queries
- Describe four SELECT statement clauses (SELECT, FROM, WHERE, ORDER BY) and their purpose
- Retrieve all rows of a table
- Retrieve specific columns
- Retrieve rows based on comparisons to numeric or alphanumeric column values
- Use the keywords BETWEEN, IN, LIKE, DISTINCT
- Order the resulting rows in a desired sequence
Retrieving Data from Multiple Tables
- Retrieve data from more than one table or view
- Specify JOIN predicates
- Use correlation names in queries
- Distinguish between INNER and OUTER joins
Scalar Functions and Arithmetic
- Use arithmetic in the SELECT and WHERE clauses
- Use basic scalar functions to: Manipulate arithmetic calculations through rounding, Manipulate date values, and Manipulate character data
Column Functions and Grouping
- Describe the difference between scalar and column functions
- List the more common DB2 and Informix column functions
- Group rows into sets based on one or more columns
- Limit the number of groups in the result set
Union
- Produce a single result table containing data from more than one query
- State the UNION rules
- State the difference between UNION and UNION ALL
Using Subqueries
- Use subqueries in WHERE and HAVING clauses
- Code subqueries using basic predicates
- Code subqueries using the IN keyword
Maintaining Data
- Create a simple table for testing DML statements
- Create a simple view
- Insert rows into a table
- Update data in a table
- Delete rows from a table
- Drop a table
Agenda
Day 1
- Welcome
- Introduction
- Simple SQL Queries
- Exercise 1
- Exercise Review
- Retrieving Data from Multiple Tables
- Exercise 2
- Exercise Review
- Scalar Functions and Arithmetic
- Exercise 3
Day 2
- Exercise review
- Column Functions and Grouping
- Exercise 4
- Exercise Review
- Exercise 5
- Exercise Review
- Using Subqueries
- Exercise 6
- Exercise Review
- Maintaining Data
- Exercise 7
- Exercise Review
Remarks
This is an Instructor Led On Line 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. Materials are not guaranteed to be delivered to student, if registration is received three business days before class start date.
