title: How to get the minimum of 3 values where some of them may be null in MySQL using LEAST()?
body: <p>I found this question ( <a href="https://stackoverflow.com/questions/1565688/how-to-get-the-max-of-two-values-in-mysql">How to get the max of two values in MySQL?</a> ) while looking for ways to compare discrete set of values.</p>
  
  <p>I want to be able to get the <strong>minimum</strong> of few <strong>selected</strong> values where some of them may be <code>null</code> because they are optional but the <a href="http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html#function_least" rel="nofollow noreferrer">MySQL docs</a> says:</p>
  
  <blockquote>
    <p>If any argument is NULL, the result is NULL.</p>
  </blockquote>