
Please select area for further details.
A two day course designed to give a basic understanding of the objects that form a DB2 data base, to extract information and satisfy simple queries. A prior knowledge of TSO would be advantageous.
| Evolution; Hierachical, network and relational DBMS's; Advantages and disadvantages | |
| Development of DB2 through the 80's; what has been incorporated in which releases | |
| Data structure; Data integrity and validation; Data manipulation; Candidate and foreign keys; Referential Integrity; Introduction to SQL | |
| Data definition Language; Definition of DB2 objects; Simple, segemented and partitioned table spaces; Create/delete/change DB2 objects | |
| Data retrieval using SQL; SELECT statement; Unions and Joins; INSERT; DELETE; UPDATE | |
| Definition and use; Naming conventions; Systems tables; Information interrogation | |
| Data protection; Data Control Language; Ownership of DB2 objects; Use of Synonyms; Authorisation levels | |
| LOAD, REORG, RUNSTATS etc.; Use of DB2 to invoke utilities |
Extensive practical work, using SPUFI is used in this three day course to consolidate the topics discussed and enable the attendee to use interactive SQL. Prior attendance on the Introduction to DB2 course would help analysts, programmers, DBA's and end users who wish to come on this course.
| Table spaces, tables, rows, columns etc.; Candidate and foreign keys; Introduction to SQL | |
| CREATE statement; Candidate and foreign keys; Null clauses; DB2 referential integrity | |
| ALTER and DROP statements | |
| Types; Creation; Defining; SUBPAGES clause | |
| SELECT statement; Built in functions; Simple and complex queries; UNION; Subselects; Views | |
| ORDER BY clause; GROUP BY clause; HAVING clause | |
| INSERT, DELETE and UPDATE statements | |
| Naming conventons,; Contents of systems tables; Interrogating information | |
| Data protection; GRANT and REVOKE statements; Using synonyms; Authorisation levels such as SYSADM, DBADB etc. | |
| IBM Utilities; DB21; LOAD; RUNSTATS; REORG | |
| updates; COMMIT and ROLLBACK |
For those programmers who need to write programs accessing DB2 data this two day course is a must, as at the end of it they will have gained an in-depth knowledge of DB2 and be able to use embedded SQL in programs. A knowledge of Interactive SQL (as covered in Using SQL with DB2 Data Bases) and a minimum of one years programming experience is assumed.
| SQL statements and syntax; Use of SPUFI | |
| Use of delimeters; Static and Dynamic; DCLGEN; The precompiler; DRBM; The bind process; Re-binding; SQLCA | |
| "One-off" updates using a primary key; Host variables; NULLS; COMMIT statement | |
| Why it is needed; definition and use; FETCH statement | |
| expanding the OPEN CURSOR statement; WHERE CURRENT OF clause; UPDATE and DELETE statements; COMMIT statement | |
| "Lost" updates; Types of lock; Lock modes and duration of locks; CS and RR; COMMIT and ROLLBACK statements | |
| IBM Utilities; DB21; LOAD; RUNSTATS; REORG | |
| Table design; Row size; Indexes; Data Type; EXPLAIN statement; RUNSTATS utility |
Please see our further information page for more details or call +44(0)1206 240647 to book any of these courses