Query XML data with DB2 9 Eğitimi

Ön Kayıt ve Fiyat Bilgi Formu

Tarih ve lokasyonlar

Bu eğitimi özel sınıf olarak kendi kurumunuzda talep edebilirsiniz.
Lütfen bizimle iletişime geçin:


+90 212 282 7700

Talep Formu

Query XML data with DB2 9 (CL121G )

IBM Course Code: 2L121G

This course is designed to introduce you to non-traditional ways of using DB2 to work with native XML data. It is also designed to enable database administrators to manage the DB2 - native XML environment.

The students query XML data stored in DB2 tables and create XML documents from traditional DB2 data. They access XML documents as though the documents were relational tables. This content is addressed and can be taken by users or other personnel who only need to access XML data stored in DB2 tables.

What You'll Learn

  • List the primary features of XML documents, XML namespaces, and XML schemas
  • Use XQuery to retrieve documents from an XML column
  • Use SQL/XML retrieval, publishing, and shredding functions
  • Develop simple stored procedures and user-defined functions that handle XML documents
  • Query XML documents using advanced query techniques
  • Use Optim Development Studio to perform both XQuery and SQL queries using SQL/XML

Who Needs to Attend

This intermediate course is for:

  • Users
  • Database administrators
  • Anyone interested in learning how to retrieve native XML data and how to handle native XML data in DB2

This course is appropriate for students using DB2 in a z/Linux environment.


You should have a working knowledge of SQL and DB2 concepts.

It would be helpful to have an introductory knowledge of XML, XML - related concepts - but the course is designed not to assume any prior knowledge of XML and related matters.

Follow-On Courses

There are no follow-ons for this course.

Course Outline

XML basics

  • Explain the business value of using XML technology
  • Describe why and when XML can be advantageous
  • Differentiate between relational data and XML
  • Determine whether a given XML document follows the basic XML standards

XML Namespaces

  • Explain the need for and importance of namespaces
  • List the rules for defining and using namespaces within an XML document
  • Use namespaces in common scenarios

XML Schemas

  • Describe the alternative approaches to schemas for XML
  • Identify the components of a DTD and how they are used
  • Define the components and constructs that make up an XML schema
  • Identify approaches to using XML schemas for XML document processing
  • Create a simple XML schema
  • Validate an XML document against an XML schema

Introduction to XPath

  • Describe the reasons for using XPath
  • Define the components and constructs that make up the XPath language
  • Identify abbreviated XPath expressions
  • Write simple XPath expressions to navigate through XML documents

Introduction to XQuery

  • Describe the XQuery and XPath data model
  • Retrieve DB2 data using XQuery functions
  • Construct the most often used FLWOR (for, let, where, order by, and return) expression


  • using the SQL/XML built-in functions: Retrieve XML data, Publish XML data, and Shred XML data

Updating and Transforming XML Documents

  • List the common methods that can be used to update or transform XML documents
  • Describe the reasons for using TRANSFORM
  • Use the TRANSFORM clause to COPY, MODIFY, and RETURN results
  • Use the TRANSFORM clause to replace values and nodes, to insert nodes, delete nodes, and rename nodes in an existing XML document
  • Describe the purpose and functionality of XSLT transformations

Introduction to Programming with XML

  • Use IBM Optim Development Studio to develop basic stored procedures, triggers, and user-defined functions that handle XML documents
  • Pass XML parameters to stored procedures and user-defined functions
  • Compare modes of access to XML data from common programming languages
  • List XML features that are available through various programming languages
  • List XML capabilities available through Java programming

Advanced queries

  • Use conditional (if-then-else) logic
  • Include arithmetic calculations
  • Join XML data in different tables
  • Join relational and XML data
  • Embed XQuery inside SQL
  • Pass parameters

Optim Development Studio and XML Queries

  • Create XML queries (XMLQUERY) using the query builder
  • Create queries containing SQL/XML using the query builder

Eğitim içeriğini PDF olarak indir

Diğer IBM, Database Management & Development Eğitimleri