<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: beware of table alias in LEFT JOIN</title>
	<link>http://krisgale.com/beware-of-table-alias-in-left-join/</link>
	<description>meanderings of a computer scientist on the brink of sheer insanity.</description>
	<pubDate>Fri, 16 May 2008 07:07:32 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>

	<item>
		<title>By: krisgale</title>
		<link>http://krisgale.com/beware-of-table-alias-in-left-join/#comment-870</link>
		<author>krisgale</author>
		<pubDate>Tue, 08 Apr 2008 17:08:05 +0000</pubDate>
		<guid>http://krisgale.com/beware-of-table-alias-in-left-join/#comment-870</guid>
		<description>yep i agree, it &lt;em&gt;appears&lt;/em&gt; that with version 5 mysql ab has indeed abandoned ANSI standards for sql, even if only slightly, i don't like the precedent that this sets.</description>
		<content:encoded><![CDATA[<p>yep i agree, it <em>appears</em> that with version 5 mysql ab has indeed abandoned ANSI standards for sql, even if only slightly, i don&#8217;t like the precedent that this sets.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jay</title>
		<link>http://krisgale.com/beware-of-table-alias-in-left-join/#comment-869</link>
		<author>jay</author>
		<pubDate>Tue, 08 Apr 2008 16:35:23 +0000</pubDate>
		<guid>http://krisgale.com/beware-of-table-alias-in-left-join/#comment-869</guid>
		<description>What happens when you put parens in a normal query?  I am not an SQL guy at all, but PostgreSQL seems to have some weird reactions:

django=# SELECT p.id FROM blog_post p, blog_tag t;
    ... (results as expected)
django=# SELECT p.id FROM (blog_post p, blog_tag t);
ERROR:  syntax error at or near "," at character 30
LINE 1: SELECT p.id FROM (blog_post p, blog_tag t);

Now I'm not sure that PostgreSQL allows for that parenthesized syntax at all, but it seems strange that somewhere in the grammar of MySQL it will allow or not allow ()'s to be left out depending on context.</description>
		<content:encoded><![CDATA[<p>What happens when you put parens in a normal query?  I am not an SQL guy at all, but PostgreSQL seems to have some weird reactions:</p>
<p>django=# SELECT p.id FROM blog_post p, blog_tag t;<br />
    &#8230; (results as expected)<br />
django=# SELECT p.id FROM (blog_post p, blog_tag t);<br />
ERROR:  syntax error at or near &#8220;,&#8221; at character 30<br />
LINE 1: SELECT p.id FROM (blog_post p, blog_tag t);</p>
<p>Now I&#8217;m not sure that PostgreSQL allows for that parenthesized syntax at all, but it seems strange that somewhere in the grammar of MySQL it will allow or not allow ()&#8217;s to be left out depending on context.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
