<?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>Microshell &#187; Database</title>
	<atom:link href="http://www.microshell.com/browse/database/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.microshell.com</link>
	<description>Learn something share something</description>
	<lastBuildDate>Sun, 09 May 2010 03:04:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Swap values in 2 rows SQL</title>
		<link>http://www.microshell.com/database/sql/swap-values-in-2-rows-sql/</link>
		<comments>http://www.microshell.com/database/sql/swap-values-in-2-rows-sql/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 19:31:20 +0000</pubDate>
		<dc:creator>Maresa</dc:creator>
				<category><![CDATA[General SQL]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PostgreSQL]]></category>

		<guid isPermaLink="false">http://www.microshell.com/?p=1990</guid>
		<description><![CDATA[I encountered a situation at work that I feel would be a good brain teaser. I was working on a project and needed a way to swap values from 2 different rows in a SQL table. Obviously I can do it on client side (like PHP) to do it; but that wouldn&#8217;t be a good [...]]]></description>
		<wfw:commentRss>http://www.microshell.com/database/sql/swap-values-in-2-rows-sql/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Solving sudoku using PostgreSQL PL/pgSQL</title>
		<link>http://www.microshell.com/database/postgresql/solving-sudoku-using-postgresql-plpgsql/</link>
		<comments>http://www.microshell.com/database/postgresql/solving-sudoku-using-postgresql-plpgsql/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 23:09:01 +0000</pubDate>
		<dc:creator>Maresa</dc:creator>
				<category><![CDATA[General / Algorithm]]></category>
		<category><![CDATA[PostgreSQL]]></category>

		<guid isPermaLink="false">http://www.microshell.com/?p=1197</guid>
		<description><![CDATA[I have no idea why I would want to solve sudoku in PostgreSQL PL/pgSQL. My guess would be just for the fun of it. I&#8217;m also hoping that it can serve as a tutorial example in programming PostgreSQL PL/pgSQL.
So what is sudoku? It is basically a number puzzle where the objective is to fill 9&#215;9 [...]]]></description>
		<wfw:commentRss>http://www.microshell.com/database/postgresql/solving-sudoku-using-postgresql-plpgsql/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Use EXISTS() instead of COUNT(*)</title>
		<link>http://www.microshell.com/database/sql/use-exists-instead-of-count/</link>
		<comments>http://www.microshell.com/database/sql/use-exists-instead-of-count/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 18:13:53 +0000</pubDate>
		<dc:creator>Maresa</dc:creator>
				<category><![CDATA[General SQL]]></category>

		<guid isPermaLink="false">http://www.microshell.com/?p=1527</guid>
		<description><![CDATA[A lot of times, I saw programmers use COUNT(*) and check if the result is greater than 0 to see if a particular record exits in a table. If your only purpose is to know if a record exists or not and you don&#8217;t really care about how many matched records are there, the better [...]]]></description>
		<wfw:commentRss>http://www.microshell.com/database/sql/use-exists-instead-of-count/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Bulk alter schema in MySQL.</title>
		<link>http://www.microshell.com/database/mysql/bulk-alter-schema-in-mysql/</link>
		<comments>http://www.microshell.com/database/mysql/bulk-alter-schema-in-mysql/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 00:47:21 +0000</pubDate>
		<dc:creator>Maresa</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.microshell.com/?p=1195</guid>
		<description><![CDATA[There are times when you want to alter schema for all tables in the database. For example, let&#8217;s say in your project you have multiple databases with multiple tables on each of them. Suppose that you have columns within that table defined as DECIMAL(11,6). What it means is that the column will have 11 digits [...]]]></description>
		<wfw:commentRss>http://www.microshell.com/database/mysql/bulk-alter-schema-in-mysql/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Getting around MySQL TIMEDIFF() for hours greater than 838</title>
		<link>http://www.microshell.com/database/mysql/getting-around-mysql-timediff-maximum-value-of-8385959/</link>
		<comments>http://www.microshell.com/database/mysql/getting-around-mysql-timediff-maximum-value-of-8385959/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 21:35:16 +0000</pubDate>
		<dc:creator>Maresa</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.microshell.com/?p=1015</guid>
		<description><![CDATA[One of the golden rule of programming is to know about the function you are calling. You need to know what parameters it takes and what return values and type it gives back. For the most part, it&#8217;s not too hard to find that out. For MySQL, however, I found that it&#8217;s not always easy [...]]]></description>
		<wfw:commentRss>http://www.microshell.com/database/mysql/getting-around-mysql-timediff-maximum-value-of-8385959/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Comparing data from 2 database tables</title>
		<link>http://www.microshell.com/database/sql/comparing-data-from-2-database-tables/</link>
		<comments>http://www.microshell.com/database/sql/comparing-data-from-2-database-tables/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 10:41:32 +0000</pubDate>
		<dc:creator>Maresa</dc:creator>
				<category><![CDATA[General SQL]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PostgreSQL]]></category>

		<guid isPermaLink="false">http://www.microshell.com/?p=950</guid>
		<description><![CDATA[During development cycle, I often come to a case where I need to compare two tables whether they are the same or not. For example, if you already have a running script that outputs to a database table in production that was written sub-optimally and you need to improve it. You want to make sure [...]]]></description>
		<wfw:commentRss>http://www.microshell.com/database/sql/comparing-data-from-2-database-tables/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Adding script name on SQL queries</title>
		<link>http://www.microshell.com/database/sql/automatically-adding-script-name-on-sql/</link>
		<comments>http://www.microshell.com/database/sql/automatically-adding-script-name-on-sql/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 06:45:43 +0000</pubDate>
		<dc:creator>Maresa</dc:creator>
				<category><![CDATA[General SQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.microshell.com/?p=855</guid>
		<description><![CDATA[Have you ever done SHOW FULL PROCESSLIST on MySQL and found that there are some queries that has been running for a long time? Then you tried to find out from where the query was initiated so that you can debug those script only to find out that there are many similar queries from different [...]]]></description>
		<wfw:commentRss>http://www.microshell.com/database/sql/automatically-adding-script-name-on-sql/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Keep replication in mind when writing SQL code.</title>
		<link>http://www.microshell.com/database/sql/keep-replication-in-mind-when-writing-sql-code/</link>
		<comments>http://www.microshell.com/database/sql/keep-replication-in-mind-when-writing-sql-code/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 04:02:56 +0000</pubDate>
		<dc:creator>Maresa</dc:creator>
				<category><![CDATA[General SQL]]></category>
		<category><![CDATA[Quick Tips]]></category>

		<guid isPermaLink="false">http://www.microshell.com/?p=769</guid>
		<description><![CDATA[This is something I got &#34;bitten&#34; once, especially if you have a development server with its own database not replicated and production database is replicated. That slight difference is enough to cause production problems that may not be noticeable days after production release. As a wise man say:
When programming SQL statements, be mindful of replication.
Well, [...]]]></description>
		<wfw:commentRss>http://www.microshell.com/database/sql/keep-replication-in-mind-when-writing-sql-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Emulating nextval() function to get sequence in MySQL</title>
		<link>http://www.microshell.com/database/mysql/emulating-nextval-function-to-get-sequence-in-mysql/</link>
		<comments>http://www.microshell.com/database/mysql/emulating-nextval-function-to-get-sequence-in-mysql/#comments</comments>
		<pubDate>Sun, 08 Feb 2009 23:08:52 +0000</pubDate>
		<dc:creator>Maresa</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.microshell.com/?p=777</guid>
		<description><![CDATA[There are times when auto increment is not sufficient. And there are times when what you need is actually a sequence. Unfortunately MySQL doesn&#8217;t have support for sequence. Having been working on PostgreSQL database as well, I found that it&#8217;s nextval() function is pretty nice. So in this article, I&#8217;d like to emulate (or implement) [...]]]></description>
		<wfw:commentRss>http://www.microshell.com/database/mysql/emulating-nextval-function-to-get-sequence-in-mysql/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Floyd-Warshal algorithm in PostgreSQL PL/pgSQL.</title>
		<link>http://www.microshell.com/programming/floyd-warshal-algorithm-in-postgresql-plpgsql/</link>
		<comments>http://www.microshell.com/programming/floyd-warshal-algorithm-in-postgresql-plpgsql/#comments</comments>
		<pubDate>Sat, 24 Jan 2009 20:04:17 +0000</pubDate>
		<dc:creator>Maresa</dc:creator>
				<category><![CDATA[General / Algorithm]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.microshell.com/?p=497</guid>
		<description><![CDATA[This article is an extension of my previous article This time, however, I will write the algorithm completely in PostgreSQL&#8217;s PL/pgSQL. For background information and to understand the premise of this post, please glance through my previous post.
Ok now that you&#8217;re familiar with what we&#8217;re working towards, here&#8217;s my assumption of your database structure:

You have [...]]]></description>
		<wfw:commentRss>http://www.microshell.com/programming/floyd-warshal-algorithm-in-postgresql-plpgsql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
