Canada's Leader in Professional Development

855-581-7246 Call us: 416-368-7246 ext 2

Accessing the IBM i Database Using SQL

Currently no upcoming Class Dates


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).


  • 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


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).


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)


2 days


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

Click here to reach us by Email Contact Us
About | Terms of Use | Privacy Visit our Facebook page   Visit ot Linkedin page   View our Tweets