
Explore how DB2, an IBM relational database and DBMS, runs on mainframes, AS400, and Linux, with options to download and install on a local PC.
Identify the four types of SQL operations in DB2: DDL, DCL, and TCL, including CREATE, ALTER, DROP; INSERT, UPDATE, DELETE, and SELECT; GRANT, REVOKE; and COMMIT, ROLLBACK.
Understand the DB2 hierarchy from storage groups to databases, table spaces, and index spaces. See how tables and indexes organize data into rows and columns, with views, synonyms, and aliases.
Explore data types in DB2, including numeric, string, and date-time categories. Identify key types such as integer, smallint, decimal, char, varchar, date, time, timestamp, and boolean.
Create store and item tables in DB2, defining fields such as store_id integer, store_name, item_id smallint, item_receive_date date, item_name, and item_price decimal(10,2). Execute them with Spoofy.
Create a view in DB2 mainframe as a virtual table, not physical, by selecting store_id, item_id, and item_name from the store and item tables, then query the view.
Learn to alter a table in db2 on mainframe by adding a store_location column (varchar(50)), rename it to store_LOC, and verify with a select; use semicolons for execution.
Learn how drop permanently deletes a table, automatically removing related views, synonyms, and indexes, and how it differs from delete, with a practical example using store and item.
Master insert operations in DB2 on the mainframe using insert into table values and insert into table (columns) values. Use insert into table select from another table to copy data.
Learn how to retrieve records from a table using select, including select star and specific columns, with optional where, group by, having, and order by clauses.
Learn to use between for numeric ranges and like for non-numeric pattern matching, including starts with, contains, and underscores for single-character matches, and not like patterns as needed.
Learn how to use exists and not exists to test for row presence, and apply group by with sum and count to aggregate store balances by store_id in DB2.
Learn how having works with aggregate functions in db2 mainframe, and why where cannot filter aggregated results. Explore common aggregates like avg, sum, min, max, and count.
Sort records with the order by clause in ascending or descending order, defaulting to ascending; see an example selecting store_id from t2 and applying where, group condition, and having.
Learn how to update a table in DB2 on mainframe by using update and set to assign item_id and item_received_date for a specific store_id with a where clause.
Demonstrate the delete operation using delete from table with a where clause to remove specific records, and verify results with select, highlighting the risk of deleting all rows without a condition.
Note:
This Course is NOT a DB2 DBA COURSE and is not related to Database administration.
The Course provides the basic introduction to DB2 and trains on the DML operations on
Mainframe. Most of the DDL operations on DB2 are carried out by DB2 DBA and this course
gives a brief introduction of DDL operations which Mainframe Developer should be aware of.
Why should I Learn DB2 on Mainframe?
Is this Course for DB2 DBA?
No, this Course is for Developers who work on IBM Mainframe. This Course covers major DDL operations from developers point of view(not DBA's Point of view). Major DML operations are also covered. Please do not worry, if you do not know what is DDL and what is DML. This is covered in the course.
Which topics are covered in this Course?