<?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"
	>
<channel>
	<title>Comments on: Database Design</title>
	<atom:link href="http://www.thinklife.co.uk/2007/10/05/database-design/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thinklife.co.uk/2007/10/05/database-design/</link>
	<description></description>
	<pubDate>Tue, 06 Jan 2009 21:32:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Tony</title>
		<link>http://www.thinklife.co.uk/2007/10/05/database-design/#comment-65</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Tue, 23 Oct 2007 09:10:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.thinklife.co.uk/2007/10/05/database-design/#comment-65</guid>
		<description>&lt;p&gt;Thanks for the comments guys. You do have some valid points but as I have said it's a draft.  Prefixing with tbl is something you love or hate. A lot of the database's I look after on a day to day basis have 100's of users with access front ends, some users really don't know the difference between tables, views etc so prefixing has become a habit of mine that saves lots of problems when linking (both show as tables).&lt;/p&gt;
&lt;p&gt;Gym isn't plural because there wont be multiple gyms. A better name would have been tblGymActivities as the table is for recording activity you do at the gym.&lt;/p&gt;
&lt;p&gt;Sometimes the obvious mistakes don't appear until you start interfacing to the database and/or adding data. Hence why I said it's only 50% of the final version and the UI mock ups will help me decide.&lt;/p&gt;
&lt;p&gt;Just so you know that there are some tables omitting from this design as they would clearly give away some of the functionality I am not ready to share and to be honest I won't be publishing my final design. This application isn't open source it's just a log of some of the things I have to do to create an app.&lt;/p&gt;
&lt;p&gt;Seriously though thanks for the criticism, I believe there is no such thing as bad criticism, only constructive.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for the comments guys. You do have some valid points but as I have said it&#8217;s a draft.  Prefixing with tbl is something you love or hate. A lot of the database&#8217;s I look after on a day to day basis have 100&#8217;s of users with access front ends, some users really don&#8217;t know the difference between tables, views etc so prefixing has become a habit of mine that saves lots of problems when linking (both show as tables).</p>
<p>Gym isn&#8217;t plural because there wont be multiple gyms. A better name would have been tblGymActivities as the table is for recording activity you do at the gym.</p>
<p>Sometimes the obvious mistakes don&#8217;t appear until you start interfacing to the database and/or adding data. Hence why I said it&#8217;s only 50% of the final version and the UI mock ups will help me decide.</p>
<p>Just so you know that there are some tables omitting from this design as they would clearly give away some of the functionality I am not ready to share and to be honest I won&#8217;t be publishing my final design. This application isn&#8217;t open source it&#8217;s just a log of some of the things I have to do to create an app.</p>
<p>Seriously though thanks for the criticism, I believe there is no such thing as bad criticism, only constructive.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian</title>
		<link>http://www.thinklife.co.uk/2007/10/05/database-design/#comment-64</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Mon, 22 Oct 2007 15:12:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.thinklife.co.uk/2007/10/05/database-design/#comment-64</guid>
		<description>You don't seem to very consistent in your database design. I wouldn't have published it at this stage as it looks like you lack some design skills.</description>
		<content:encoded><![CDATA[<p>You don&#8217;t seem to very consistent in your database design. I wouldn&#8217;t have published it at this stage as it looks like you lack some design skills.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony</title>
		<link>http://www.thinklife.co.uk/2007/10/05/database-design/#comment-61</link>
		<dc:creator>Anthony</dc:creator>
		<pubDate>Sun, 21 Oct 2007 08:43:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.thinklife.co.uk/2007/10/05/database-design/#comment-61</guid>
		<description>Talking about database design, why did you prefix all your table names with 'tbl'?
From a database designer point of view if you use SQL Server 2005 Management Studio  your tables will be listed under 'tables' so there is no need to specify in the name of each table that they are tables.
From a developer point of view, writing 'select GymId from Gym' is very clear and (slightly) shorter than 'select GymId from tblGym'.

Also:
-why is your tblUsers table in plural but your tblGym table in singular? Are you implying that you will have multiple users in your User table but only one gym in your Gym table? Same with the Journal table etc. It's your choice to have all the table names either in singular or plural but you should be consistent. I personally prefer all the names to be in singular as I find it simpler. If a user can be linked to multiple gyms, will you create a GymUser table? GymsUser? GymUsers? GymsUsers? If they are all in singular you don't have to ask yourself such question.
-Why is your primary key in your Gym table called GymId but in your User table called UID (as opposed to UserId). Same with JID instead of JournalId,etc. You're not consistent.

If you don't pay attention to those details at this stage, I'm a bit worried about your final product. The database will be invisible to the end users so it doesn't matter that much but if you're as inconsistent with the UI that will frustrate a lot of people.</description>
		<content:encoded><![CDATA[<p>Talking about database design, why did you prefix all your table names with &#8216;tbl&#8217;?<br />
From a database designer point of view if you use SQL Server 2005 Management Studio  your tables will be listed under &#8216;tables&#8217; so there is no need to specify in the name of each table that they are tables.<br />
From a developer point of view, writing &#8217;select GymId from Gym&#8217; is very clear and (slightly) shorter than &#8217;select GymId from tblGym&#8217;.</p>
<p>Also:<br />
-why is your tblUsers table in plural but your tblGym table in singular? Are you implying that you will have multiple users in your User table but only one gym in your Gym table? Same with the Journal table etc. It&#8217;s your choice to have all the table names either in singular or plural but you should be consistent. I personally prefer all the names to be in singular as I find it simpler. If a user can be linked to multiple gyms, will you create a GymUser table? GymsUser? GymUsers? GymsUsers? If they are all in singular you don&#8217;t have to ask yourself such question.<br />
-Why is your primary key in your Gym table called GymId but in your User table called UID (as opposed to UserId). Same with JID instead of JournalId,etc. You&#8217;re not consistent.</p>
<p>If you don&#8217;t pay attention to those details at this stage, I&#8217;m a bit worried about your final product. The database will be invisible to the end users so it doesn&#8217;t matter that much but if you&#8217;re as inconsistent with the UI that will frustrate a lot of people.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.thinklife.co.uk/2007/10/05/database-design/#comment-59</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sat, 06 Oct 2007 21:32:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.thinklife.co.uk/2007/10/05/database-design/#comment-59</guid>
		<description>Hi Tony,
I found your blog from Starr over at &lt;a href="http://steplivelynow.com/blog/" title="Step Lively Now" rel="nofollow"&gt;Step Lively Now&lt;/a&gt; I'll be following your blog to see how you are doing. I'm in the same boat you are, trying to get my MicroISV off the ground. I need to go back and read the rest of your posts to come up to speed with how far along you are.  I'm about to enter a full beta phase.  I just started my personal blog about the technical and business development at &lt;a href="http://mymicroisvjourney.blogspot.com/" title="My MicroISV Journey" rel="nofollow"&gt;My MicroISV Journey.&lt;/a&gt;

Good luck.</description>
		<content:encoded><![CDATA[<p>Hi Tony,<br />
I found your blog from Starr over at <a href="http://steplivelynow.com/blog/" title="Step Lively Now" rel="nofollow">Step Lively Now</a> I&#8217;ll be following your blog to see how you are doing. I&#8217;m in the same boat you are, trying to get my MicroISV off the ground. I need to go back and read the rest of your posts to come up to speed with how far along you are.  I&#8217;m about to enter a full beta phase.  I just started my personal blog about the technical and business development at <a href="http://mymicroisvjourney.blogspot.com/" title="My MicroISV Journey" rel="nofollow">My MicroISV Journey.</a></p>
<p>Good luck.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
