<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Use VALUES clause to get the maximum value from some columns [SQL Server, T-SQL]</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2012/01/20/use-values-clause-to-get-the-maximum-value-from-some-columns-sql-server-t-sql.aspx</link><description>My ex-colleague Paul Mcmillan pointed me at a thread on Stack Overflow that demonstrated a neat T-SQL trick to get the maximum value from a collection of columns in a row. Paul had never seen it before and neither had I so I figure one or two of you out</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>re: Use VALUES clause to get the maximum value from some columns [SQL Server, T-SQL]</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2012/01/20/use-values-clause-to-get-the-maximum-value-from-some-columns-sql-server-t-sql.aspx#41192</link><pubDate>Fri, 20 Jan 2012 14:44:14 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:41192</guid><dc:creator>James</dc:creator><description>&lt;p&gt;excellent, very useful.&lt;/p&gt;
&lt;p&gt;Thank You!&lt;/p&gt;
</description></item><item><title>re: Use VALUES clause to get the maximum value from some columns [SQL Server, T-SQL]</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2012/01/20/use-values-clause-to-get-the-maximum-value-from-some-columns-sql-server-t-sql.aspx#41193</link><pubDate>Fri, 20 Jan 2012 15:23:39 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:41193</guid><dc:creator>siva</dc:creator><description>&lt;p&gt;good one, some time i wil fact this issue &lt;/p&gt;
</description></item><item><title>re: Use VALUES clause to get the maximum value from some columns [SQL Server, T-SQL]</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2012/01/20/use-values-clause-to-get-the-maximum-value-from-some-columns-sql-server-t-sql.aspx#41209</link><pubDate>Fri, 20 Jan 2012 23:06:42 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:41209</guid><dc:creator>Gianluca Sartori</dc:creator><description>&lt;p&gt;Nice, thanks for sharing!&lt;/p&gt;
&lt;p&gt;However, not as efficient as you would think.&lt;/p&gt;
&lt;p&gt;See this for a faster solution:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.sqlservercentral.com/Forums/FindPost1190488.aspx"&gt;http://www.sqlservercentral.com/Forums/FindPost1190488.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Use VALUES clause to get the maximum value from some columns [SQL Server, T-SQL]</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2012/01/20/use-values-clause-to-get-the-maximum-value-from-some-columns-sql-server-t-sql.aspx#41227</link><pubDate>Mon, 23 Jan 2012 07:34:59 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:41227</guid><dc:creator>Jennyfer</dc:creator><description>&lt;p&gt;Very nice.... thanks for sharing &lt;/p&gt;
</description></item><item><title>re: Use VALUES clause to get the maximum value from some columns [SQL Server, T-SQL]</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2012/01/20/use-values-clause-to-get-the-maximum-value-from-some-columns-sql-server-t-sql.aspx#41249</link><pubDate>Tue, 24 Jan 2012 00:02:51 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:41249</guid><dc:creator>Gil</dc:creator><description>&lt;p&gt;Before Row Constructors, I used to do that with (SELECT a UNION ALL SELECT b UNION ALL SELECT c)&lt;/p&gt;
</description></item><item><title>re: Use VALUES clause to get the maximum value from some columns [SQL Server, T-SQL]</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2012/01/20/use-values-clause-to-get-the-maximum-value-from-some-columns-sql-server-t-sql.aspx#41341</link><pubDate>Thu, 26 Jan 2012 13:50:12 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:41341</guid><dc:creator>Ramakrishna Rao</dc:creator><description>&lt;p&gt;Good one. It really helped me.&lt;/p&gt;
</description></item><item><title>re: Use VALUES clause to get the maximum value from some columns [SQL Server, T-SQL]</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2012/01/20/use-values-clause-to-get-the-maximum-value-from-some-columns-sql-server-t-sql.aspx#41587</link><pubDate>Tue, 07 Feb 2012 13:45:45 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:41587</guid><dc:creator>Dattatrey Sindol (Datta)</dc:creator><description>&lt;p&gt;Nice article Jamie !!&lt;/p&gt;
&lt;p&gt;Here is an article by Robert Sheldon on this feature called Table Value Constructors (TVCs) - &lt;a rel="nofollow" target="_new" href="http://www.simple-talk.com/sql/sql-training/table-value-constructors-in-sql-server-2008/"&gt;http://www.simple-talk.com/sql/sql-training/table-value-constructors-in-sql-server-2008/&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>