title: Get all permutations of values - into pairs
body: <p>I have X amount of values being passed into a table via CSV - so I take 99315,99316,99223 and split them out into a single column temp table - each value in the CSV into a single row. </p>
  
  <p>What I need to be able to do is to get every permutation of values in pairs - 
  so - something like:</p>
  
  <pre><code>Col1     Col2
  99315    99316
  99315    99223
  99316    99315
  99316    99223
  99223    99315
  99223    99316
  </code></pre>