Skip to main content


developerWorks  >  Information Management | Rational | Architecture  >

Rational Data Architect skills series, Part 2: Generate SQL/XML queries with Rational Data Architect

Transform data from relational data sources into XML format

developerWorks

Level: Intermediate

Torsten Bittner (tbittner@us.ibm.com), Software Engineer, IBM

07 Sep 2006

Register now or sign in using your IBM ID and password.

You can use the SQL/XML query language to transform relational data into XML format. Since it is cumbersome to manually write SQL/XML queries, IBM® Rational® Data Architect simplifies this work by automatically generating SQL/XML queries based on graphically defined mappings. Get an introduction to the SQL/XML generation component of Rational Data Architect.

Objectives

After taking this tutorial, you should be able to use Rational Data Architect and its mapping editor to generate and run SQL/XML queries.

Prerequisites

This tutorial assumes familiarity with relational databases, preferably DB2. You should also have a good understanding of the XML and XSD standards. Basic knowledge of the SQL/XML query language is required. Basic knowledge of Rational Data Architect is beneficial, but not required. (Consult the article "Use Rational Data Architect to integrate data sources" (developerWorks, March 2006) and part one of this series, "Access and integrate enterprise metadata with Rational Data Architect" (developerWorks, July 2006), for reference.)


System requirements

In order to execute the steps that are described in this tutorial, it is necessary to have Rational Data Architect 6.1 and DB2 installed. You can download trial versions of Rational Data Architect 6.1 and DB2 V8.2.



Formats

html, pdf


Tutorial overview

This tutorial shows you, step by step, how to:

  • Graphically define a mapping model between a relational database model as the source and an XML schema definition as the target
  • Generate an SQL/XML query based on this mapping model
  • Execute the SQL/XML query and analyze the result
  • Define joins between multiple source columns
  • Add transformation functions to the mapping model

Share this....

digg Digg this story del.icio.us del.icio.us Slashdot Slashdot it!


Back to top


Document options

Document options requiring JavaScript are not displayed

Discuss


More in this series:
Rational Data Architect skills series