title: Create categories column names from one column in SQL
body: <p>I have oracle table which looks like this:</p>
  
  <pre><code>ID---Date------------Type
  1  |  01/01/2013  | Install Date 
  1  |  05/01/2013  | Complete Date 
  1  |  10/01/2013  | Closed Date
  2  |  02/01/2013  | Install Date
  2  |  03/02/2013  | Closed Date
  3  |  10/01/2013  | Install Date
  3  |  13/01/2013  | Closed Date
  4  |  07/01/2013  | Install Date
  4  |  09/01/2013  | Complete Date
  4  |  17/01/2013  | Closed Date
  </code></pre>
  
  <p>What I want to achieve is to query this to get result like this:</p>
  
  <pre><code>ID--InstallDate--CompleteDate--ClosedDate------
  1 | 01/01/2013 | 05/01/2013 | 10/01/2013 
  2 | 02/01/2013 | --null-----| 03/02/2013
  3 | 10/01/2013 | --null-----| 13/01/2013
  4 | 07/01/2013 | 09/01/2013 | 17/01/2013
  </code></pre>