<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/Subquery</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 23 May 2013 14:35:01 GMT</pubDate>
<item>
<title>(SQL) Update table with values selected in a subquery - preasha</title>
<link>http://snipplr.com/view/58267/update-table-with-values-selected-in-a-subquery/</link>
<description><![CDATA[ <p>The inner join could be nested too</p> ]]></description>
<pubDate>Mon, 29 Aug 2011 22:34:04 GMT</pubDate>
<guid>http://snipplr.com/view/58267/update-table-with-values-selected-in-a-subquery/</guid>
</item>
<item>
<title>(SQL) users with more than one of a gateway - lastobelus</title>
<link>http://snipplr.com/view/51050/users-with-more-than-one-of-a-gateway/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 24 Mar 2011 07:20:25 GMT</pubDate>
<guid>http://snipplr.com/view/51050/users-with-more-than-one-of-a-gateway/</guid>
</item>
<item>
<title>(MySQL) calculate the difference between dates in one columns within the same  table - bradless</title>
<link>http://snipplr.com/view/28622/calculate-the-difference-between-dates-in-one-columns-within-the-same--table/</link>
<description><![CDATA[ <p>I use something similar to the example to get the difference between statuses in a status log table that I have. It comes in handy when determining the number of days between status changes. This works in MySQL 5.0.</p> ]]></description>
<pubDate>Fri, 19 Feb 2010 12:06:53 GMT</pubDate>
<guid>http://snipplr.com/view/28622/calculate-the-difference-between-dates-in-one-columns-within-the-same--table/</guid>
</item>
<item>
<title>(SQL) Find all categories NOT used in current item - stavelin</title>
<link>http://snipplr.com/view/8523/find-all-categories-not-used-in-current-item/</link>
<description><![CDATA[ <p>It's easy to find the categories used on one item, but find all categories NOT used on current item?
This snippet stores a "NOT IN" query.

This is used with PHP &amp; mySQL. The query can be written differently on other databases, but this seems to work with mySQL.</p> ]]></description>
<pubDate>Sun, 21 Sep 2008 16:03:24 GMT</pubDate>
<guid>http://snipplr.com/view/8523/find-all-categories-not-used-in-current-item/</guid>
</item>
<item>
<title>(PL/SQL) Efficiently compare results from two queries - stews</title>
<link>http://snipplr.com/view/8457/efficiently-compare-results-from-two-queries/</link>
<description><![CDATA[ <p>This compares selected columns between 2 queries, using the WITH clause.  It lists the rows and values that are different between the two sources.

This is from Tom Kyte (www.asktom.com).  I can't say I understand exactly how it works, but it's much faster than other methods I've seen, because it only looks through each query once.</p> ]]></description>
<pubDate>Wed, 17 Sep 2008 17:33:02 GMT</pubDate>
<guid>http://snipplr.com/view/8457/efficiently-compare-results-from-two-queries/</guid>
</item>
<item>
<title>(SQL) TSQL to Concatenate Subquery Row Values into a Column Value - rengber</title>
<link>http://snipplr.com/view/5497/tsql-to-concatenate-subquery-row-values-into-a-column-value/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 19 Mar 2008 22:54:33 GMT</pubDate>
<guid>http://snipplr.com/view/5497/tsql-to-concatenate-subquery-row-values-into-a-column-value/</guid>
</item>
</channel>
</rss>