Email Us   Phone : 503-259-0312   
  Home    |    Instructor-led Training    |    Online Training     


Contact Us   -   Why Choose Wintrac   -   Clients    

Courses
ADA
Adobe
Agile
AJAX
Android
Apache
AutoCAD
Big Data
BlockChain
Business Analysis
Business Intelligence
Business Objects
Business Skills
C/C++/Go programming
Cisco
Citrix
Cloud Computing
COBOL
Cognos
ColdFusion
COM/COM+
CompTIA
CORBA
CRM
Crystal Reports
Data Science
Datawarehousing
DB2
Desktop Application Software
DevOps
DNS
Embedded Systems
Google Web Toolkit (GWT)
IPhone
ITIL
Java
JBoss
LDAP
Leadership Development
Lotus
Machine learning/AI
Macintosh
Mainframe programming
Microsoft technologies
Mobile
MultiMedia and design
.NET
NetApp
Networking
New Manager Development
Object oriented analysis and design
OpenVMS
Oracle
Oracle VM
Perl
PHP
PostgreSQL
PowerBuilder
Professional Soft Skills Workshops
Project Management
Rational
Ruby
Sales Performance
SAP
SAS
Security
SharePoint
SOA
Software quality and tools
SQL Server
Sybase
Symantec
Telecommunications
Teradata
Tivoli
Tomcat
Unix/Linux/Solaris/AIX/
HP-UX
Unisys Mainframe
Visual Basic
Visual Foxpro
VMware
Web Development
WebLogic
WebSphere
Websphere MQ (MQSeries)
Windows programming
XML
XML Web Services
Other
DB2 for z/OS, SQL and JAVA Application Programming
Overview

First, the concepts of DB2 are presented and discussed.

The Structured Query Language (SQL) is presented as the means to access DB2 data (and to create and secure DB2 components). Several guided, hands-on, practice sessions give each attendee an opportunity to use SQL to access data. The Command Center is used to execute SQL statements. Referential Integrity concepts and implementation are covered.

DB2 (SQL) programming / embedding SQL in a JAVA application program is presented and discussed in detail. Both JDBC and SQLJ are discussed in detail. A "shell" program is modified to SELECT a single row, FETCH multiple rows, INSERT, UPDATE, and DELETE row(s), use Referential Integrity, and use column functions and grouping.

DB2 performance guidelines are discussed. The SQL statement EXPLAIN PLAN is used to help to evaluate the efficiency of SQL statements.

The following "Release Dependent" features are also covered -

  • Version 6 - 100 new scalar functions, update Triggers, User Defined Functions (UDF), User Defined Types (UDT)
  • Version 7 - UNION Everywhere, Scrollable cursors, Limited Fetch
  • Version 8 - additional SQL features
Also, a demonstration is provide of DB2 for WINDOWs to show "future" features for DB2 for OS/390. These features include Recursive SQL, the WITH SQL feature, GROUPING SETS, ROLLUP and Visual Explain.

LEARNING OBJECTIVES

As a result of this class, the attendee will be able to -

  • Explain DB2 concepts, terminology and components
  • Discuss the Primary Key (PK), Unique Key (UK) and Foreign Key (FK) concept
  • SELECT rows of data from DB2 tables
  • Use QMF and/or SPUFI to "run" SQL statements
  • Use the WHERE clause to SELECT specific rows of a DB2 table
  • Build queries using the ORDER BY, GROUP BY, HAVING clauses
  • Use the CASE expressions and several SCALAR / COLUMN FUNCTIONS
  • Access multiple tables - JOIN, UNION, sub-queries, and nested table expressions
  • CREATE Tables, Indexes, Views
  • "Change" tables using the INSERT, UPDATE, DELETE statements
  • Describe the security provided by the GRANT and REVOKE
  • Discuss the design considerations of REFERENTIAL INTEGRITY
  • Perform DCLGENs to build table definitions and I/O areas
  • Modify a "shell" program to select a single row, multiple rows, and change rows
  • Discuss the importance of the SQLCODE and how to test for it
  • Discuss overall DB2 PERFORMANCE considerations
  • Run the EXPLAIN PLAN SQL statement and analyze results
Audience

Experienced Data Processing personnel who need use SQL to design and develop JAVA programs to access DB2 data.

Prerequisites

At least six months of JAVA programming experience is recommended. No previous database experience is needed.

Course duration

5 days

Course outline

DAY 1
 
  1. Introduction to DB2


  2.       Course Introduction
    1. DB2 - Concepts, and Terminology

  3. II. Structured Query Language (SQL)


    1. SQL 1 - The SELECT Statement
    2. Command Center to access DB2
    3. SQL 2 - SQL Functions
    4. SQL 3 - ORDER BY, GROUP BY, HAVING
DAY 2
 
  1. Structured Query Language (SQL) (Continued)


    1. SQL 4 - Join, Sub-select, UNION
    2. SQL 5 - Data Definition Language
    3. SQL 6 - INSERT, UPDATE, DELETE
    4. SQL 8 - Other SQL Topics

DAY 3
 
  1. DB2 Application Programming


    1. SQL Programming I - Overview
    2. SQL Programming II - JAVA - JDBC and SQLJ Access
    3. SQL Programming III - SELECTing Multiple Rows

DAY 4
 
  1. DB2 Application Programming (Continued)


    1. Concurrency Control - Locking
    2. SQL Programming IV - INSERT, UPDATE, DELETE

DAY 5
 
  1. DB2 Application Programming (Continued)
  2. Additional Topics


    1. SQL Programming V - Other Programming Considerations
    2. DB2 Performance Introduction
    3. Data Control Language (DCL)

Appendices

Appendix A - IBM Sample Tables Appendix J - Version 6 Functions Summary
Appendix B - Bibliography Appendix K - UDT and UDF
Appendix C - The Programming Workshop Appendix L - Cast Testing
Appendix D - EXPLAIN PLAN Statement and PLAN_TABLE and DSN_STATEMNT_TABLE Appendix M - Trigger Introduction
Appendix E - Hints to Success Appendix N - DB2 for WINDOWs Overview
Appendix F - SQLCODES / SQLSTATES Appendix O - JDBC vs SQLJ - Summary
Appendix G - QMF Overview Appendix Z6- Changes Summary - DB2 V 6
Appendix H - Stored Procedures Appendix Z7- Changes Summary - DB2 V 7
Appendix I - "Common" SQL Errors Appendix Z8- Changes Summary - DB2 V 8


 
About us
Contact us
Careers at Wintrac
Our Clients
Why Wintrac


Register for a free training CD-ROM drawing
Refer a client or instructor and earn $$$


Wintrac Inc.
16523 SW McGwire Ct.
Beaverton OR 97007
 
? Wintrac, Inc. All rights reserved.                                                                               Site Map   |   Terms of Use   |   Privacy Policy