﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss Content Posted by Keith Henry / Article Discussions / Article Discussions by Author  / Filtering on data using the MAX function / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 22 May 2013 17:08:52 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Filtering on data using the MAX function</title><link>http://www.sqlservercentral.com/Forums/Topic413881-153-1.aspx</link><description>I'm not sure whether this will help you or not. But still I'just came across the following and thought of distributing to you.ExamplesThis example returns the book with the highest (maximum) year-to-date sales.USE pubsGOSELECT MAX(ytd_sales)FROM titlesENZOI!!!!!!!!!!!!!!!</description><pubDate>Tue, 23 Oct 2007 07:55:51 GMT</pubDate><dc:creator>VSVaidya</dc:creator></item><item><title>RE: Filtering on data using the MAX function</title><link>http://www.sqlservercentral.com/Forums/Topic413881-153-1.aspx</link><description>Use HAVING Clause....SELECT GroupColumn, MAX( AnyColumn )FROM AnyTableGROUP BY GroupColumnHAVING MAX( AnyColumn ) &amp;gt; 10</description><pubDate>Tue, 23 Oct 2007 07:46:23 GMT</pubDate><dc:creator>Ramesh Saive</dc:creator></item><item><title>Filtering on data using the MAX function</title><link>http://www.sqlservercentral.com/Forums/Topic413881-153-1.aspx</link><description>Filtering on data using the MAX function.  How do I formulate this statement.  I'm not selecting the field;just need to filter on it.</description><pubDate>Tue, 23 Oct 2007 07:08:23 GMT</pubDate><dc:creator>Shirley Thomas</dc:creator></item></channel></rss>