• Select a country/region: United States
  • IBM®
  • Site map

  • Training - worldwide
  • Training
  • Course catalog

Course description: Accessing the IBM i Database Using SQL

This course is not scheduled. Inquire about Onsite training at your facility.

  • Add course to my custom catalog
  • Add to my training plan

Overview

  • Special note
  • Audience
  • Prerequisites
  • Skills taught
  • Course outline
List of course details in a data table
Course code OL370 Skill level Intermediate
Duration 2.0 days Delivery type Classroom
(Hands-on labs)
Course type Public or Private on-site    
Public price USD $1,520.00 plus tax    

SQL is a very powerful programming and database language that is widely used in business today. For example, SQL can be used to perform interactive database queries as well as to extract data from a server and pass that data to a Java applet running on a client PC. SQL is frequently used in IBM i high-level languages as an alternate means to access the database.

This course is designed to teach IBM i programmers and highly skilled IBM i users how to access the DB2 database using SQL. You will learn how to create, maintain, and query the database using the interactive SQL interface and System i Navigator.

This course provides lectures and hands on labs in a face-to-face classroom setting. The course is also offered in a live virtual classroom environment (ILO - Instructor Led Online) with hands-on labs Accessing the Power i DB using SQL - ILO (OV370).

View this course in other countries


Training Paths that reference this course are:

  • Application Developer (DB2, WDSc, RPG, CL, SQL) SQL Path
  • End User

Back to top

Special note

IBM Education Advantage Program eligibility:

  • Yes - IBM Education Pack - online account

Back to top

Audience

This is an intermediate course for experienced IBM i (including i5/OS and OS/400) programmers. However, very skilled IBM i users who want to learn how to use the SQL programming language as a means to access the DB2 Database for IBM i may also consider attending this class.

This course is not recommended for users who need to perform simple queries. DB2 WebQuery Getting Started is an end user oriented tool designed for this purpose. You can learn about IBM Query for IBM i by attending such courses as DB2 WebQuery for IBM i Workshop (OD040) / (OV440).

Back to top

Prerequisites

You should be able to:

  • Use a Windows-based PC
  • Navigate and use a Windows-based desktop
  • Navigate IBM i menus
  • Use IBM i commands
  • List the data types that are supported by the IBM i DB2 database
  • Explain the use of the data types supported by the IBM i DB2 database

Other courses that may enhance your knowledge are:

  • System i Application Programming Facilities Workshop (OL490) / (OV490)
  • DB2 UDB for System I Fundamentals (OL450)

Assuming an IBM i programming background, a programmer would attend the database classes in this order:

  • DB2 UDB for System i Fundamentals (OL450)
  • Accessing the System i Database Using SQL (OL370) / (OV370) or IBM i DB2 and SQL School (OD470) / (OV470)
  • Developing System i Applications Using SQL (OL380)
  • DB2 UDB for System i SQL Advanced Programming (OL390)

Back to top

Skills taught

  • Apply data definition language (DDL) to describe tables and views
  • Use UPDATE, INSERT, ALTER, and DELETE to modify SQL tables and maintain a database
  • Make use of the SELECT statement to extract data from tables and views
  • Code SQL queries that include column and scalar functions
  • Code SQL queries that include inner and outer joins
  • Utilize SQL Query Manager

Back to top

Course outline

Welcome and Administration

  • Unit 1. SQL Concepts
    • Introducing SQL
  • Unit 2. Extracting Data Using SELECT
    • The SELECT Statement
    • Using System i  Navigator
    • Using 5250 STRSQL
  • Unit 3. Functions
    • Column Functions
    • Scalar Functions
    • CASE and CAST
  • Unit 4. JOIN and UNION
    • Using JOIN
    • UNION
  • Unit 5. SubSELECTs
    • Using SubSELECTs / Subqueries
  • Unit 6. Query Tools
    • Using Query Manager
  • Unit 7. Database Maintenance
    • SQL Data Types
    • SQL Data Definition and Manipulation
    • Data Integrity
    • SQL SYS Objects
    • Creating SQL Objects on the System i

Back to top

My IBM

  • Edit your profile

We're here to help

Easy ways to get the answers you need.

  • or call us at
    Call 1-800-426-8322
    Open M-F 9AM-7PM ET.

Find the right course

  • Training paths will help you decide

Offers and more