title: Is there a Max function in SQL Server that takes two values like Math.Max in .NET?
body: <p>I want to write a query like this:</p>
  
  <pre><code>SELECT o.OrderId, MAX(o.NegotiatedPrice, o.SuggestedPrice)
  FROM Order o
  </code></pre>
  
  <p>But this isn't how the <code>MAX</code> function works, right?  It is an aggregate function so it expects a single parameter and then returns the MAX of all rows.   </p>
  
  <p>Does anyone know how to do it my way?</p>