title: Want a select query where database data represented as column name
body: <p>I have a database table named as sales. </p>
  
  <pre><code>| ID  |  Group  |   Month  | Amt |
  ____________________________________
   1    | Y       | Dec-2015 | 300
  ___________________________________
   2    | Z       | Dec-2015 | 250
  ___________________________________
   1    | Y       | Nov-2015 | 320
  ____________________________________
   2    | Z       | Nov-2015 | 430
  </code></pre>
  
  <p>I want output as following table</p>
  
  <pre><code>| ID  |  group  | Dec-2015| Nov-2015
  ___________________________________
   1    | Y       |    300  |  320
  ___________________________________
   2    | Z       |   250   |  430
  ____________________________________
  </code></pre>
  
  <p>I hope you get my requirement now. I am not very good at Sql. i hope you can help , Thanks in advance.</p>