Chapter 1 – The Basics of SQL

“As I would not be a slave, so I would not be a master.”

- Abraham Lincoln



The Student_Table above will be used

in our early SQL Examples

This is a pictorial of the Student_Table which we will use to present some basic examples of SQL and get some hands-on experience with querying this table. This book attempts to show you the table, the query, and the result set.

Finding Your Current Schema


The example above shows you how to find your current schema.

Setting Your Default SCHEMA

DB2 allows you do set ...

Get Tera-Tom Genius Series - DB2 SQL now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.