<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: The power of a good SQL naming convention</title>
	<atom:link href="http://www.xaprb.com/blog/2008/10/26/the-power-of-a-good-sql-naming-convention/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xaprb.com/blog/2008/10/26/the-power-of-a-good-sql-naming-convention/</link>
	<description>Stay curious!</description>
	<lastBuildDate>Thu, 09 Feb 2012 09:56:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Links 010 - Nagios, Cheat, Sheets, Incident, Handling, Kurzanleitung, Sheet, Commands - NETWAYS Blog</title>
		<link>http://www.xaprb.com/blog/2008/10/26/the-power-of-a-good-sql-naming-convention/#comment-17362</link>
		<dc:creator>Links 010 - Nagios, Cheat, Sheets, Incident, Handling, Kurzanleitung, Sheet, Commands - NETWAYS Blog</dc:creator>
		<pubDate>Fri, 04 Dec 2009 13:04:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=73#comment-17362</guid>
		<description>[...] The power of a good SQL naming convention [...]</description>
		<content:encoded><![CDATA[<p>[...] The power of a good SQL naming convention [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Devon</title>
		<link>http://www.xaprb.com/blog/2008/10/26/the-power-of-a-good-sql-naming-convention/#comment-15892</link>
		<dc:creator>Joe Devon</dc:creator>
		<pubDate>Sat, 21 Feb 2009 21:37:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=73#comment-15892</guid>
		<description>I&#039;ve used this naming convention with good success. In most cases it really makes things much clearer. 

But something that I&#039;d clarify is the underscore vs. camelCase naming convention and make a rule for how to name the crossref table. 

Where it can get tricky is an example like this:
Table1 = photo
Table2 = photo_album
Using Robert&#039;s idea, the cross ref would be either
Table3 = photo_photo_album
or
Table3 = photo_album_photo
...pretty confusing...

Personally I like Robert&#039;s method, but I&#039;d only use underscores for xref tables and camelCase for multiple words...and try to stick to single word table names where possible.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve used this naming convention with good success. In most cases it really makes things much clearer. </p>
<p>But something that I&#8217;d clarify is the underscore vs. camelCase naming convention and make a rule for how to name the crossref table. </p>
<p>Where it can get tricky is an example like this:<br />
Table1 = photo<br />
Table2 = photo_album<br />
Using Robert&#8217;s idea, the cross ref would be either<br />
Table3 = photo_photo_album<br />
or<br />
Table3 = photo_album_photo<br />
&#8230;pretty confusing&#8230;</p>
<p>Personally I like Robert&#8217;s method, but I&#8217;d only use underscores for xref tables and camelCase for multiple words&#8230;and try to stick to single word table names where possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alan</title>
		<link>http://www.xaprb.com/blog/2008/10/26/the-power-of-a-good-sql-naming-convention/#comment-15372</link>
		<dc:creator>alan</dc:creator>
		<pubDate>Mon, 10 Nov 2008 03:55:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=73#comment-15372</guid>
		<description>Seriously, table.id leads to &quot;a lot more code&quot; ? Not only is it a lot less code, it actually makes sense (DRY with meaning). Likewise, FKs should be table.foreign_id . Also, keeping everything lowcase (e.g. table, sequence, pk) is good for maximizing ORM compatibility.</description>
		<content:encoded><![CDATA[<p>Seriously, table.id leads to &#8220;a lot more code&#8221; ? Not only is it a lot less code, it actually makes sense (DRY with meaning). Likewise, FKs should be table.foreign_id . Also, keeping everything lowcase (e.g. table, sequence, pk) is good for maximizing ORM compatibility.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: esger</title>
		<link>http://www.xaprb.com/blog/2008/10/26/the-power-of-a-good-sql-naming-convention/#comment-15363</link>
		<dc:creator>esger</dc:creator>
		<pubDate>Fri, 07 Nov 2008 14:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=73#comment-15363</guid>
		<description>Spaces, underscores, camelCase, are all nice but you quickly run into problems if non native speakers have to use these. There is always the doubt where these delimiters have or don&#039;t have to go. Though the example of possible confusion leaving them out is valid, the chance of running in to it when naming tables is low more so since the names are not arbitrary but in context. 

naming pk and fk basically the same is interesting. (we use id as pk and tablenameid as fk) but it seems to me that it is the argument of the amount of code to be written that is driving your naming convention and that consistency is only your second concern. With the right tools, the amount of code should not be a concern and automated code generation systems should be insensitive to the naming scheme or absence thereof.</description>
		<content:encoded><![CDATA[<p>Spaces, underscores, camelCase, are all nice but you quickly run into problems if non native speakers have to use these. There is always the doubt where these delimiters have or don&#8217;t have to go. Though the example of possible confusion leaving them out is valid, the chance of running in to it when naming tables is low more so since the names are not arbitrary but in context. </p>
<p>naming pk and fk basically the same is interesting. (we use id as pk and tablenameid as fk) but it seems to me that it is the argument of the amount of code to be written that is driving your naming convention and that consistency is only your second concern. With the right tools, the amount of code should not be a concern and automated code generation systems should be insensitive to the naming scheme or absence thereof.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ArtÃ­culos destacados de Octubre &#124; cambrico.net</title>
		<link>http://www.xaprb.com/blog/2008/10/26/the-power-of-a-good-sql-naming-convention/#comment-15359</link>
		<dc:creator>ArtÃ­culos destacados de Octubre &#124; cambrico.net</dc:creator>
		<pubDate>Fri, 07 Nov 2008 09:30:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=73#comment-15359</guid>
		<description>[...] para realizar una buena convenciÃ³n de nombres para los objetos de una base de datos, en Xaprb (en [...]</description>
		<content:encoded><![CDATA[<p>[...] para realizar una buena convenciÃ³n de nombres para los objetos de una base de datos, en Xaprb (en [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

