<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to find the max row per group in SQL without subqueries</title>
	<atom:link href="http://www.xaprb.com/blog/2007/03/14/how-to-find-the-max-row-per-group-in-sql-without-subqueries/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xaprb.com/blog/2007/03/14/how-to-find-the-max-row-per-group-in-sql-without-subqueries/</link>
	<description>Stay curious!</description>
	<lastBuildDate>Thu, 09 Feb 2012 20:41:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: David Kleszyk</title>
		<link>http://www.xaprb.com/blog/2007/03/14/how-to-find-the-max-row-per-group-in-sql-without-subqueries/#comment-19835</link>
		<dc:creator>David Kleszyk</dc:creator>
		<pubDate>Sat, 14 Jan 2012 21:03:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=307#comment-19835</guid>
		<description>Stumbled on this after being stymied by MySQL 3.23&#039;s lack of sub-queries. Extremely helpful, thanks so much!</description>
		<content:encoded><![CDATA[<p>Stumbled on this after being stymied by MySQL 3.23&#8242;s lack of sub-queries. Extremely helpful, thanks so much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://www.xaprb.com/blog/2007/03/14/how-to-find-the-max-row-per-group-in-sql-without-subqueries/#comment-19402</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Thu, 09 Jun 2011 21:09:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=307#comment-19402</guid>
		<description>As a followup, because it took me a few minutes before the facepalm.  If you wanted the youngest, coolest kid, because you have multiple kids of the same age (assuming a coolness column), you&#039;d change the join to:

left outer join person as younger on younger.gender = young.gender
      and (younger.age  young.coolness))</description>
		<content:encoded><![CDATA[<p>As a followup, because it took me a few minutes before the facepalm.  If you wanted the youngest, coolest kid, because you have multiple kids of the same age (assuming a coolness column), you&#8217;d change the join to:</p>
<p>left outer join person as younger on younger.gender = young.gender<br />
      and (younger.age  young.coolness))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.xaprb.com/blog/2007/03/14/how-to-find-the-max-row-per-group-in-sql-without-subqueries/#comment-18998</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 21 Dec 2010 19:38:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=307#comment-18998</guid>
		<description>Thank you so much for this post.  The solution I was using with subqueries was horribly inefficient but this did the trick.  As you said, it&#039;s surprisingly fast too.</description>
		<content:encoded><![CDATA[<p>Thank you so much for this post.  The solution I was using with subqueries was horribly inefficient but this did the trick.  As you said, it&#8217;s surprisingly fast too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ali desitero</title>
		<link>http://www.xaprb.com/blog/2007/03/14/how-to-find-the-max-row-per-group-in-sql-without-subqueries/#comment-18975</link>
		<dc:creator>Ali desitero</dc:creator>
		<pubDate>Tue, 07 Dec 2010 13:31:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=307#comment-18975</guid>
		<description>PERFECT!

After spending hours and hours and trying many many different queries, this solution work perfect for me.

very fast on a standart pc with 30.000 rows. Only 0.0399 secs.

Good job!</description>
		<content:encoded><![CDATA[<p>PERFECT!</p>
<p>After spending hours and hours and trying many many different queries, this solution work perfect for me.</p>
<p>very fast on a standart pc with 30.000 rows. Only 0.0399 secs.</p>
<p>Good job!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arun</title>
		<link>http://www.xaprb.com/blog/2007/03/14/how-to-find-the-max-row-per-group-in-sql-without-subqueries/#comment-18602</link>
		<dc:creator>arun</dc:creator>
		<pubDate>Thu, 02 Sep 2010 16:51:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=307#comment-18602</guid>
		<description>the last query and its output do not match ... the last age column in output should not be there</description>
		<content:encoded><![CDATA[<p>the last query and its output do not match &#8230; the last age column in output should not be there</p>
]]></content:encoded>
	</item>
</channel>
</rss>

