<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>nklein software &#187; sql</title>
	<atom:link href="http://nklein.com/tags/sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://nklein.com</link>
	<description>software development and consulting</description>
	<lastBuildDate>Tue, 22 May 2012 03:48:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Move over UML, I Have SQL</title>
		<link>http://nklein.com/2009/05/move-over-uml-i-have-sql/</link>
		<comments>http://nklein.com/2009/05/move-over-uml-i-have-sql/#comments</comments>
		<pubDate>Fri, 08 May 2009 19:29:25 +0000</pubDate>
		<dc:creator>pat</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[code design]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://nklein.com/?p=296</guid>
		<description><![CDATA[I have been trying to nail down a design for a sizable software project. I know how I want the system to behave. I just hadn&#8217;t nailed down a good API or internal structure for it yet. I knew that I was going to have to track multiple versions of uniquely identifiable data with different [...]]]></description>
			<content:encoded><![CDATA[<p>I have been trying to nail down a design for a sizable software project.  I know how I want the system to behave.  I just hadn&#8217;t nailed down a good API or internal structure for it yet.</p>
<p>I knew that I was going to have to track multiple versions of uniquely identifiable data with different versions stored in different locations.</p>
<p>I had all sorts of <abbr title="Unified Modeling Language">UML</abbr> drawing on whiteboards and graph paper and in <a href="http://www.omnigroup.com/applications/omnigraffle/">OmniGraffle</a>.  Everything just kept getting messy.</p>
<p>Earlier this week, I read a great article about <a href="http://icodeblog.com/2008/08/19/iphone-programming-tutorial-creating-a-todo-list-using-sqlite-part-1/">Using SQLite on the iPhone</a>.  So, today, I tried to hammer out what I would do with this data if I were using <abbr title="Structured Query Language">SQL</abbr> to track it.  I wrote a bunch of <b>CREATE TABLE</b> statements and then a few <b>SELECT</b> statements.</p>
<p>It worked.  Getting the <b>JOIN</b>s in the <b>SELECT</b> statements to make sense forced me to make the relations in my data <q>as simple as possible, but no simpler.</q>  I had been trying to jam many-to-many relationships into one-to-many or many-to-one relationships.  The SQL exercise forced me to get it right.</p>
<p>Will I use SQL in the final project?  Maybe, but it doesn&#8217;t seem like I will need it.  Did I need to use SQL for the design?  Absolutely.</p>
]]></content:encoded>
			<wfw:commentRss>http://nklein.com/2009/05/move-over-uml-i-have-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

