<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=white lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>The SQL standard never defines indexing strategies. Not for
relational data nor for XML.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>All vendors provide indexing mechanisms.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Michael<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:
"Tahoma","sans-serif";color:windowtext'> talk-bounces@x-query.com
[mailto:talk-bounces@x-query.com] <b>On Behalf Of </b>David A. Lee<br>
<b>Sent:</b> Monday, June 15, 2009 4:51 PM<br>
<b>To:</b> Brian Maso<br>
<b>Cc:</b> talk@x-query.com<br>
<b>Subject:</b> Re: [xquery-talk] XQuery and databases - XQuery 2.0<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I believe oracle's implementation lets you do that, but its
not &quot;standard&quot;.<br>
<br>
<br>
<br>
<o:p></o:p></p>

<pre>David A. Lee<o:p></o:p></pre><pre><a href="mailto:dlee@calldei.com">dlee@calldei.com</a>&nbsp; <o:p></o:p></pre><pre><a
href="http://www.calldei.com">http://www.calldei.com</a><o:p></o:p></pre><pre><a
href="http://www.xmlsh.org">http://www.xmlsh.org</a><o:p></o:p></pre><pre>812-482-5224<o:p></o:p></pre>

<p class=MsoNormal><br>
<br>
Brian Maso wrote: <o:p></o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'>Yea, I knew about SQL/XML. I
was thinking more about intra-column indexing -- so if I have an XML column I
could write an efficient WHERE clause on the value of a specific descendant
element value. I don't believe SQL/XML defines a way to ddefine indexes using,
say, an XPath expression.<br>
<br>
Best regards,<br>
Brian Maso<o:p></o:p></p>

<div>

<p class=MsoNormal>On Mon, Jun 15, 2009 at 2:19 PM, Pavel Minaev &lt;<a
href="mailto:int19h@gmail.com">int19h@gmail.com</a>&gt; wrote:<o:p></o:p></p>

<p class=MsoNormal>On Mon, Jun 15, 2009 at 2:10 PM, Brian Maso&lt;<a
href="mailto:brian@blumenfeld-maso.com">brian@blumenfeld-maso.com</a>&gt;
wrote:<br>
&gt; I had heard that future versions of the SQL standard are to bring XML in
to<br>
&gt; SQL -- basically make non-validated XML nodes as valid column types and
add<br>
&gt; intra-XML indexing.<br>
<br>
It's called SQL/XML, and it has been there since SQL-2003:<br>
<br>
<a href="http://en.wikipedia.org/wiki/SQL/XML" target="_blank">http://en.wikipedia.org/wiki/SQL/XML</a><br>
_______________________________________________<br>
<a href="mailto:talk@x-query.com">talk@x-query.com</a><br>
<a href="http://x-query.com/mailman/listinfo/talk" target="_blank">http://x-query.com/mailman/listinfo/talk</a><o:p></o:p></p>

</div>

<p class=MsoNormal><br>
<br>
<o:p></o:p></p>

<pre><o:p>&nbsp;</o:p></pre><pre style='text-align:center'>

<hr size=4 width="90%" align=center>

</pre><pre><o:p>&nbsp;</o:p></pre><pre>_______________________________________________<o:p></o:p></pre><pre><a
href="mailto:talk@x-query.com">talk@x-query.com</a><o:p></o:p></pre><pre><a
href="http://x-query.com/mailman/listinfo/talk">http://x-query.com/mailman/listinfo/talk</a><o:p></o:p></pre></div>

</body>

</html>