title: Does the order of columns matter in a group by clause?
body: <p>If I have two columns, one with very high cardinality and one with very low cardinality (unique # of values), does it matter in which order I group by?</p>
  
  <p>Here's an example:</p>
  
  <pre><code>select 
       dimensionName, 
       dimensionCategory, 
       sum(someFact)
  from SomeFact f
  join SomeDim d on f.dimensionKey = d.dimensionKey
  group by 
      d.dimensionName,  -- large number of unique values
      d.dimensionCategory -- small number of unique values
  </code></pre>
  
  <p>Are there situations where it matters?</p>