title: How to convert 2d table into 3d table using SQL
body: <p>How to convert 2d table into 3d table using SQL</p>
  
  <p>Sample Tables:</p>
  
  <p>Actual Table </p>
  
  <pre><code>    School  class     number 
      S1      I         23
      S1      II        12
      S1      III       54
      S2      I         57
      S2      II        12
      S2      III       81
      S3      I         12
      S3      II        25
      S3      III       65
  </code></pre>
  
  <p>And to convert it into table</p>
  
  <pre><code>     I       II     III
  S1   23      12     54
  S2   57      12     81
  S3   12      25     65
  </code></pre>