<?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>Cheat Sheet &#187; SQL</title>
	<atom:link href="http://xrumxrum.com/blog/category/sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://xrumxrum.com/blog</link>
	<description>things i need to remember, but don&#039;t</description>
	<lastBuildDate>Tue, 27 Mar 2012 14:28:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Dynamic MS SQL 2005 Stored Procedure Parameters</title>
		<link>http://xrumxrum.com/blog/2011/03/16/dynamic-ms-sql-2005-stored-procedure-parameters/</link>
		<comments>http://xrumxrum.com/blog/2011/03/16/dynamic-ms-sql-2005-stored-procedure-parameters/#comments</comments>
		<pubDate>Wed, 16 Mar 2011 16:39:17 +0000</pubDate>
		<dc:creator>Zu</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://xrumxrum.com/blog/?p=289</guid>
		<description><![CDATA[I had a function in my .NET application, that needed to do a search with an unknown number of parameters. for example:  select * from tbl where x=1 or x=2 or x=3 or x=4 Solution: Pass in a comma seperated list, use a table function to split that out into a table and then use [...]]]></description>
		<wfw:commentRss>http://xrumxrum.com/blog/2011/03/16/dynamic-ms-sql-2005-stored-procedure-parameters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL JOINs</title>
		<link>http://xrumxrum.com/blog/2010/11/29/sql-joins/</link>
		<comments>http://xrumxrum.com/blog/2010/11/29/sql-joins/#comments</comments>
		<pubDate>Mon, 29 Nov 2010 16:03:23 +0000</pubDate>
		<dc:creator>Zu</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://xrumxrum.com/blog/?p=279</guid>
		<description><![CDATA[Assuming you&#8217;re joining on columns with no duplicates, which is by far the most common case: An inner join of A and B gives the result of A intersect B, i.e. the inner part of a venn diagram intersection. An outer join of A and B gives the results of A union B, i.e. the [...]]]></description>
		<wfw:commentRss>http://xrumxrum.com/blog/2010/11/29/sql-joins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Text was truncated or one or more characters had no match in the target code page.</title>
		<link>http://xrumxrum.com/blog/2010/10/01/text-was-truncated-or-one-or-more-characters-had-no-match-in-the-target-code-page/</link>
		<comments>http://xrumxrum.com/blog/2010/10/01/text-was-truncated-or-one-or-more-characters-had-no-match-in-the-target-code-page/#comments</comments>
		<pubDate>Fri, 01 Oct 2010 15:11:27 +0000</pubDate>
		<dc:creator>Zu</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://xrumxrum.com/blog/?p=267</guid>
		<description><![CDATA[I&#8217;ve run into this problem many many times already. here is a workaround? 1. save the excel as either tab delimited or pipe delimited. (the problem here is that it ads quotes to the import, but thats easily fixable later&#8230;.) update table set fieldName= replace(fieldName, &#8216;&#34;&#8217;, &#8221;) where fieldName2= 188 2. select Flat file as [...]]]></description>
		<wfw:commentRss>http://xrumxrum.com/blog/2010/10/01/text-was-truncated-or-one-or-more-characters-had-no-match-in-the-target-code-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>for xml explicit</title>
		<link>http://xrumxrum.com/blog/2010/07/08/for-xml-explicit/</link>
		<comments>http://xrumxrum.com/blog/2010/07/08/for-xml-explicit/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 13:57:45 +0000</pubDate>
		<dc:creator>Zu</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://xrumxrum.com/blog/?p=228</guid>
		<description><![CDATA[SELECT 1 AS tag, NULL AS parent, user_id AS &#91;li!1!title&#93;, name AS &#91;li!1&#93; FROM t_users FOR xml explicit comes out as: &#60;li title=&#34;1&#34;&#62;user Name 1 &#60;/li&#62; &#60;li title=&#34;2&#34;&#62;user Name 2 &#60;/li&#62; &#60;li title=&#34;3&#34;&#62;user Name 3 &#60;/li&#62; etc.]]></description>
		<wfw:commentRss>http://xrumxrum.com/blog/2010/07/08/for-xml-explicit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>useful SQL queries</title>
		<link>http://xrumxrum.com/blog/2010/05/13/useful-sql-queries/</link>
		<comments>http://xrumxrum.com/blog/2010/05/13/useful-sql-queries/#comments</comments>
		<pubDate>Thu, 13 May 2010 18:01:28 +0000</pubDate>
		<dc:creator>Zu</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://xrumxrum.com/blog/?p=218</guid>
		<description><![CDATA[Find all users that are in tblUser table  but are not in tblTransaction (very useful if there&#8217;s a foreign key issue) SELECT USER_ID FROM tblTransaction WHERE USER_ID NOT IN &#40;SELECT ID FROM TBLUSER&#41; Now this one is used when you have a table linking a many to many relationship.  This query pulls all currently assigned [...]]]></description>
		<wfw:commentRss>http://xrumxrum.com/blog/2010/05/13/useful-sql-queries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

