title: Select a column with an if expression
body: <p>For Grafana I want to make a selection in SQL Server with an IF expression.
  eg:</p>
  <pre><code>IF ExampleDb.foo&gt;ExampleDb.bar
  Select [foo] AS green;
  ELSE
  Select [foo] AS red;
  
  [bar] AS bar
  
  Where [...]
  </code></pre>
  <p>&quot;green&quot;/&quot;red&quot; shouldn't be returned if the expression isn't true.
  Is this possible to do?</p>