title: Get count of combinations of rows having different values in different columns
body: <p>I want get count of combinations of rows having different values in different columns.</p>
  
  <p>Sample Data as below:</p>
  
  <pre><code>+------+---------+---------+
  | GUID | Column1 | Column2 |
  +------+---------+---------+
  | XXX  | A       | aaa     |
  | XXX  | B       | bbb     |
  | YYY  | C       | ccc     |
  | YYY  | D       | ddd     |
  | XXX  | A       | aaa     |
  | XXX  | B       | bbb     |
  +------+---------+---------+
  </code></pre>
  
  <p>I am expecting following result. So XXX should be 2 as we are having 2 records in which Column1=A, Column2=aaa and Column1=B, Column2=bbb (Combination of two different columns values)</p>
  
  <p>XXX 2</p>
  
  <p>YYY 1</p>