<div dir="ltr"><div>Then I have some questions.</div><div><br></div><div>So what happens to the closure property.</div><div><br></div>Should I be allowed to join a JSON array with an object. Why not, or if so what type of thing will I get back and what will happen when if I try to query it (I will be allowed to query it won't I).<div><br></div><div>If I ask to order by a field and there is no schema to tell me it's type what is SQL going to do.</div><div><br></div><div>Talking of ordering how do I get the 5th array item or the 5th object when SQL only deals in unordered sets.</div><div><br></div><div>What would be the result of union of two objects and how can I determine whether such a union should be allowed at all when there is no schema?<br><div><br></div><div><br><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 1, 2015 at 1:51 PM, Michael Kay <span dir="ltr"><<a href="mailto:mike@saxonica.com" target="_blank">mike@saxonica.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">><br>
> Using SQL to process JSON is simply NOT POSSIBLE.<br>
><br>
<br>
</span>Proof?<br>
<br>
My Ph.D. thesis in 1975 showed that you can use SQL to query hierarchic data. With the emphasis on “query”. The problems start with update. So long as you restrict yourself to query, you can map almost any data model onto any other.<br>
<br>
Though the fact that you can do it doesn’t mean that it’s a good idea, of course. In those days the reason for doing it was that SQL was the only declarative query language in town, and that’s no longer the case.<br>
<br>
Michael Kay<br>
Saxonica<br>
<br>
<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></blockquote></div><br></div>