Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
DB2 For Beginners
Rating: 4.6 out of 5(3,249 ratings)
13,175 students

DB2 For Beginners

Execute SQL Queries on an IBM DB2 Database Server
Last updated 11/2026
English
English [Auto],Spanish [Auto],

What you'll learn

  • Installing IBM DB2 Server
  • Installing IBM Data Studio
  • Basic Database Concepts
  • Creating Database
  • Creating Tables
  • Inserting Records into Tables
  • Reading data from a database
  • Updating database records
  • Deleting Records
  • Truncating Table
  • Dropping Table
  • Sorting Data
  • Filtering Data
  • Excluding Duplicate Records
  • Using LIKE Operator and WHERE clause
  • Aggregate Functions
  • Installing the free IBM Db2 Community Edition and the free DBeaver SQL editor
  • Joining tables with INNER, LEFT, RIGHT, FULL OUTER, self and cross joins
  • Grouping and summarizing data with GROUP BY, HAVING, ROLLUP and CUBE
  • Writing subqueries, CTEs and recursive CTEs
  • Using window functions for rankings, running totals and moving averages
  • Adding if-then logic with CASE, and working with NULLs, text, numbers and dates
  • Designing tables with data types, keys, constraints and identity columns
  • Using MERGE, transactions (COMMIT, ROLLBACK, SAVEPOINT), views and triggers
  • Querying JSON data and using temporal tables in Db2
  • Speeding up queries with indexes, RUNSTATS and EXPLAIN
  • Moving data with EXPORT, IMPORT and LOAD, and automating reports with db2 -tvf
  • Backing up, restoring and health-checking a Db2 database
  • Cleaning messy data with SQL
  • Solving real business requests

Course content

9 sections • 79 lectures • 4h 17m total length
  • Start here: what's new in this course1:48
  • Please Read0:04
  • Introduction0:46
  • What is DB20:45
  • What is SQL4:32
  • Schemas2:50
  • Basic Database Concepts9:00
  • Installing DB2 Database Server8:15

Requirements

  • Basic knowledge of SQL
  • Basic knowledge of Databases
  • A Windows PC for the hands-on labs (Mac users get a step-by-step Docker setup guide) All software used in the course is free
  • No prior Db2 experience needed

Description

IBM Db2 is a family of related data management products,

including relational database servers, developed and marketed by IBM.

This course provides you the basic understanding of concepts of database, database installation and management. At the end of the course you should be equipped with some understanding of database management concepts.

In this course we will interact with the DB2 Server and run some SQL queries on the database. We will create a database and multiple tables and perform some data manipulation and CRUD operations on the database.

RDBMS stands for Relational Database Management System.

RDBMS is the basis for SQL, and for all modern database systems such as MS SQL Server, IBM DB2, Oracle, MySQL, and Microsoft Access.

The data in RDBMS is stored in database objects called tables. A table is a collection of related data entries and it consists of columns and rows.

Database skills are in high demand due to the volume, speed and complexity of data that is increasing daily. We interact with a variety of data in our daily lives from social media to banking and health.

NEW: A complete hands-on course has been added

The original lectures are still here. After them you'll find a brand-new, hands-on course that teaches Db2 from zero, using the free Db2 Community Edition, the free DBeaver SQL editor and the Db2 command window.

You'll work as the database person at Larkspur Cycles, a fictional bike retailer with stores and an online shop. Each lesson starts with a real request from someone in the business, and you answer it with SQL. You'll install Db2, create the database, write queries, build and change tables, and look after the database the way a working DBA would.

Every lesson ends with a "Your turn" exercise. Two projects, a capstone and two practice tests check what you've learned, and the lesson files, scripts and dataset guide are included.


Topics include:

Installing IBM DB2  Server

Installing IBM Data Studio

Basic Database  Concepts

Creating Database

Creating Tables

Inserting Records into Tables

Reading data from a database

Updating database records

Deleting Records

Truncating Table

Dropping Table

Aggregate Functions

Sorting Data

Filtering Data

Excluding Duplicate Records

Using LIKE Operator and WHERE clause

Installing Db2 Community Edition and DBeaver

Joins: INNER, LEFT, RIGHT, FULL OUTER, self and cross

GROUP BY, HAVING, ROLLUP, CUBE and GROUPING SETS

Subqueries and CTEs, including recursive CTEs

Window functions: ranking, running totals, LAG and moving averages

CASE, NULLs, and text, number and date functions

Data types, keys, constraints and identity columns

MERGE, transactions, views and triggers

JSON and temporal tables

Indexes, RUNSTATS and EXPLAIN

EXPORT, IMPORT and LOAD with CSV files

Backup, restore, health checks and REORG

Locking, isolation and security

Data cleaning with SQL


Who this course is for:

  • Beginners to DB2
  • Anyone who wants to learn SQL hands-on, from zero, with free tools
  • Data analysts and developers who need to work with IBM Db2 at work
  • Aspiring database administrators who want practical Db2 skills