<?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: My personal SQL coding standards</title>
	<link>http://www.xaprb.com/blog/2006/04/26/sql-coding-standards/</link>
	<description>Stay curious!</description>
	<pubDate>Fri, 29 Aug 2008 19:38:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>

	<item>
		<title>By: Anthony Altemara</title>
		<link>http://www.xaprb.com/blog/2006/04/26/sql-coding-standards/#comment-14370</link>
		<author>Anthony Altemara</author>
		<pubDate>Sun, 30 Mar 2008 19:53:04 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2006/04/26/sql-coding-standards/#comment-14370</guid>
		<description>Thanks for the ideas!</description>
		<content:encoded><![CDATA[<p>Thanks for the ideas!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GuidoMArcel</title>
		<link>http://www.xaprb.com/blog/2006/04/26/sql-coding-standards/#comment-13349</link>
		<author>GuidoMArcel</author>
		<pubDate>Thu, 30 Aug 2007 09:02:46 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2006/04/26/sql-coding-standards/#comment-13349</guid>
		<description>Hi,
I tried to implement your ideas in this free online (and desktop) SQL Formatter / Beautifier: http://www.sqlinform.com 
Hope this is is of interest
GuidoMArcel</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I tried to implement your ideas in this free online (and desktop) SQL Formatter / Beautifier: <a href="http://www.sqlinform.com" rel="nofollow">http://www.sqlinform.com</a><br />
Hope this is is of interest<br />
GuidoMArcel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Airoso</title>
		<link>http://www.xaprb.com/blog/2006/04/26/sql-coding-standards/#comment-3036</link>
		<author>Airoso</author>
		<pubDate>Tue, 09 Jan 2007 02:06:59 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2006/04/26/sql-coding-standards/#comment-3036</guid>
		<description>&lt;p&gt;Hi to all of you guys!&lt;br/&gt;
I definitely agree on some of your ideas..&lt;br/&gt;
btw, this are my ideas on some of your topics.. &lt;/p&gt;

&lt;pre&gt;select
     col1
     ,col2
     ,col3 …
&lt;/pre&gt;

&lt;p&gt;i can say that this coding isn’t hard to maintain and and read.&lt;br/&gt;
 the columns can be easily spotted and the great thing about&lt;br/&gt;
this is if you need to delete a column(specially the last of the select list), &lt;br/&gt;
you don’t need to look for the comma b4 that column. &lt;/p&gt;

&lt;pre&gt;“… from table1 inner join table2 on table1.a = table2.a
inner join table3 on table3.b = table1.b …” &lt;/pre&gt;

&lt;p&gt;and for this one, if i am correct, this coding is aimed for performance.. &lt;br/&gt;
if the left table has the foreign key and the right table has the primary&lt;br/&gt;
key, the matching will be more faster than the way around because the &lt;br/&gt;value that will be used for equality is a primary key. well, that was &lt;br/&gt;all i had in my mind. if i am wrong or whatsoever, i’ll be happy to be &lt;br/&gt;corrected. anyway, great thanks to you, Xaprb, for providing this &lt;br/&gt;great topic! :) &lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Hi to all of you guys!<br /><br />
I definitely agree on some of your ideas..<br /><br />
btw, this are my ideas on some of your topics.. </p>
<pre>select
     col1
     ,col2
     ,col3 …
</pre>
<p>i can say that this coding isn’t hard to maintain and and read.<br /><br />
 the columns can be easily spotted and the great thing about<br /><br />
this is if you need to delete a column(specially the last of the select list), <br /><br />
you don’t need to look for the comma b4 that column. </p>
<pre>“… from table1 inner join table2 on table1.a = table2.a
inner join table3 on table3.b = table1.b …” </pre>
<p>and for this one, if i am correct, this coding is aimed for performance.. <br /><br />
if the left table has the foreign key and the right table has the primary<br /><br />
key, the matching will be more faster than the way around because the <br />value that will be used for equality is a primary key. well, that was <br />all i had in my mind. if i am wrong or whatsoever, i’ll be happy to be <br />corrected. anyway, great thanks to you, Xaprb, for providing this <br />great topic! :) </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Lacey</title>
		<link>http://www.xaprb.com/blog/2006/04/26/sql-coding-standards/#comment-1770</link>
		<author>Chris Lacey</author>
		<pubDate>Tue, 12 Sep 2006 09:38:44 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2006/04/26/sql-coding-standards/#comment-1770</guid>
		<description>&lt;p&gt;Very much like, and agree with, your thinking on this (other than the fact that I usually capitalise keywords since, in my world, chunks of SQL can often get embedded in a string whereby the editor won't colour them).&lt;/p&gt;

&lt;p&gt;It's odd that a SQL coding standard seems to be such an unknown concept, whereas in fact the looseness of the language (case insensitivity etc) demands it all the more.&lt;/p&gt;

&lt;p&gt;I put together my own thoughts on this a while ago (at &lt;a href="http://www.cslacey.co.uk/TSQLCodingStandards.pdf"&gt;http://www.cslacey.co.uk/TSQLCodingStandards.pdf&lt;/a&gt; ).  Probably don't cover as much ground as you, but of those things I do mention, I agree with you almost entirely.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Very much like, and agree with, your thinking on this (other than the fact that I usually capitalise keywords since, in my world, chunks of SQL can often get embedded in a string whereby the editor won&#8217;t colour them).</p>
<p>It&#8217;s odd that a SQL coding standard seems to be such an unknown concept, whereas in fact the looseness of the language (case insensitivity etc) demands it all the more.</p>
<p>I put together my own thoughts on this a while ago (at <a href="http://www.cslacey.co.uk/TSQLCodingStandards.pdf">http://www.cslacey.co.uk/TSQLCodingStandards.pdf</a> ).  Probably don&#8217;t cover as much ground as you, but of those things I do mention, I agree with you almost entirely.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2006/04/26/sql-coding-standards/#comment-1406</link>
		<author>Xaprb</author>
		<pubDate>Wed, 09 Aug 2006 13:53:24 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2006/04/26/sql-coding-standards/#comment-1406</guid>
		<description>&lt;p&gt;&lt;a href="http://x7net.com/~access/index.php"&gt;Yu Tang&lt;/a&gt; has &lt;a href="http://x7net.com/~access/index.php?option=com_content&#38;task=view&#38;id=2&#38;Itemid=9&#38;limit=1&#38;limitstart=1"&gt;translated this article into Japanese&lt;/a&gt; and published it on his website.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p><a href="http://x7net.com/~access/index.php">Yu Tang</a> has <a href="http://x7net.com/~access/index.php?option=com_content&amp;task=view&amp;id=2&amp;Itemid=9&amp;limit=1&amp;limitstart=1">translated this article into Japanese</a> and published it on his website.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Archimedes Trajano</title>
		<link>http://www.xaprb.com/blog/2006/04/26/sql-coding-standards/#comment-435</link>
		<author>Archimedes Trajano</author>
		<pubDate>Wed, 17 May 2006 15:46:32 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2006/04/26/sql-coding-standards/#comment-435</guid>
		<description>&lt;p&gt;I agree with your style. Except I tend to use UPPER_CASE for my object names since that would jive with what the DBA sees.  I still use lowercase for my keywords like "select" though.&lt;/p&gt;

&lt;p&gt;I try to avoid this sort of hassle by using Hibernate nowadays though.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>I agree with your style. Except I tend to use UPPER_CASE for my object names since that would jive with what the DBA sees.  I still use lowercase for my keywords like &#8220;select&#8221; though.</p>
<p>I try to avoid this sort of hassle by using Hibernate nowadays though.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
