<?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; General SQL</title>
	<atom:link href="http://www.microshell.com/browse/database/sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.microshell.com</link>
	<description>Learn something share something</description>
	<lastBuildDate>Tue, 14 Dec 2010 20:28:08 +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>11</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>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>Optimizing SQL that selects the max/min/etc from a group.</title>
		<link>http://www.microshell.com/database/sql/optimizing-sql-that-selects-the-maxminetc-from-a-group/</link>
		<comments>http://www.microshell.com/database/sql/optimizing-sql-that-selects-the-maxminetc-from-a-group/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 15:42:50 +0000</pubDate>
		<dc:creator>Maresa</dc:creator>
				<category><![CDATA[General SQL]]></category>

		<guid isPermaLink="false">http://www.microshell.com/?p=99</guid>
		<description><![CDATA[How would you like to optimize a 10 minute query down to 24 seconds? This was an optimization I had to do at work and I thought I&#8217;d share this with anyone. Even though I was using MySQL as an example, I think the technique should work on any database. Let&#8217;s say you have a [...]]]></description>
		<wfw:commentRss>http://www.microshell.com/database/sql/optimizing-sql-that-selects-the-maxminetc-from-a-group/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

