to the main page about the tutorial  THE XML REVOLUTION  -  TECHNOLOGIES FOR THE FUTURE WEB back up next

From XQuery to SQL

Using a tool like SilkRoute, XQuery queries can be translated into equivalent SQL queries.

As a simple example, the following XQuery query:
//ingredient[@name="butter"]/@amount

corresponds to the simple SQL query:
select ingredient.amount
from ingredient
where ingredient.name='butter'

This becomes much more complicated for general queries.

The performance of a translated query depends on the shredding.

In response, the LegoDB system performs adaptive shredding.

back COPYRIGHT © 2000-2003 ANDERS MØLLER & MICHAEL I. SCHWARTZBACH next