<?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"
	>
<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>
	<pubDate>Tue, 06 Jan 2009 10:29:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Find a First/Last Row of Data Without Sub-Queries &#124; JB and Me</title>
		<link>http://www.xaprb.com/blog/2007/03/14/how-to-find-the-max-row-per-group-in-sql-without-subqueries/#comment-15257</link>
		<dc:creator>Find a First/Last Row of Data Without Sub-Queries &#124; JB and Me</dc:creator>
		<pubDate>Sat, 18 Oct 2008 23:45:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=307#comment-15257</guid>
		<description>[...] but effective&#8211;just follow the guidelines in this post. Performance is great, much better by far than using sub-queries. I found a marginal performance [...]</description>
		<content:encoded><![CDATA[<p>[...] but effective&#8211;just follow the guidelines in this post. Performance is great, much better by far than using sub-queries. I found a marginal performance [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RobertPhoenix</title>
		<link>http://www.xaprb.com/blog/2007/03/14/how-to-find-the-max-row-per-group-in-sql-without-subqueries/#comment-14925</link>
		<dc:creator>RobertPhoenix</dc:creator>
		<pubDate>Sat, 02 Aug 2008 00:04:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=307#comment-14925</guid>
		<description>This looks good when you only have one person of minimum age for each genger.  If you add another row, say 

5 robert m

You will get three rows in the result, which may not be what was wanted.</description>
		<content:encoded><![CDATA[<p>This looks good when you only have one person of minimum age for each genger.  If you add another row, say </p>
<p>5 robert m</p>
<p>You will get three rows in the result, which may not be what was wanted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2007/03/14/how-to-find-the-max-row-per-group-in-sql-without-subqueries/#comment-5055</link>
		<dc:creator>Xaprb</dc:creator>
		<pubDate>Sat, 17 Mar 2007 12:18:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=307#comment-5055</guid>
		<description>&lt;p&gt;Aaron, that query is possible in some RDBMSs (notably MySQL with strict mode disabled) but it's a &lt;a href="/blog/2006/03/11/many-to-one-problems-in-sql/"&gt;many-to-one trap&lt;/a&gt;.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Aaron, that query is possible in some RDBMSs (notably MySQL with strict mode disabled) but it&#8217;s a <a href="/blog/2006/03/11/many-to-one-problems-in-sql/">many-to-one trap</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://www.xaprb.com/blog/2007/03/14/how-to-find-the-max-row-per-group-in-sql-without-subqueries/#comment-5036</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Fri, 16 Mar 2007 18:42:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=307#comment-5036</guid>
		<description>&lt;p&gt;Can't you do 
&lt;code&gt;select *,min(age) from person group by gender&lt;/code&gt;?  Maybe not.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Can&#8217;t you do<br />
<code>select *,min(age) from person group by gender</code>?  Maybe not.</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-5000</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 15 Mar 2007 16:47:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=307#comment-5000</guid>
		<description>&lt;p&gt;If you only need to see min/max values and the group, then 

&lt;code&gt;select gender,min(age) from person group by gender&lt;/code&gt;

will work for you too.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>If you only need to see min/max values and the group, then </p>
<p><code>select gender,min(age) from person group by gender</code></p>
<p>will work for you too.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
