Query and Transformation in DBMS: Done by Ruban Christu Raj
Query and Transformation in DBMS: Done by Ruban Christu Raj
in DBMS
Done by Ruban Christu raj
Query And Transformation
Querying and transformation of XML data are essential to extract information from large
bodies of XML data, and to convert data between different representations (schemas) in
XML.
A query can either be a request for data results from your database or for action on
the data, or for both.
Data transformation is the process of converting data from one format, such as a
database file, XML document or Excel spreadsheet, into another.
Query Transform is similar to a SQL SELECT statement. It can perform the following
operations- Choose (filter) the data to extract from sources. Join data from multiple
sources. Map columns from input to output schemas.
Query And Transformation in XML
You can use it as an input to another transform or write to multiple output
sources such as a database table or a flat file.
Query Transformation Tools
Querying and transformation can be combined into a single tool. Following mentioned are some
tools/languages which provide facilities for transforming and querying XML data.
Xpath:
XPath is a language for path expressions, and is actually a building block for the remaining two query
languages. A path expression in XPath is a sequence of location steps separated by “/” (instead of the “.”
operator that separates steps in SQL:1999).
/bank-2/customer/name
would return these elements:
<name>Joe</name>
<name>Lisa</name>
<name>Mary</name
XSLT:
It was designed to be a transformation language, as part of the XSL style sheet system, which
is used to control the formatting of XML data into HTML or other print or display languages.
Although designed for formatting, XSLT can generate XML as output, and can express many
It has been proposed as a standard for querying of XML data. The World Wide Web
Consortium (W3C) is developing XQuery, a query language for XML. XQuery combines
features from many of the earlier proposals for querying XML, in particular the language
Quilt. Unlike XSLT, XQuery does not represent queries in XML. Instead, they appear more
like SQL queries, and are organized into “FLWR” (pronounced “flower”) expressions
comprising four sections: for, let, where, and return.
XQuery - Examples of Use
You can query or retrieve XML data stored in the database through two main query
languages, either by using each language on its own or by using a combination of the two.
These various methods allow you to query or retrieve XML and other relational data from
either an SQL or XQuery context.
Thank you