title: Rows to Columns using Sql Query
body: <p>hi i have a table with columns as</p>
  
  <pre><code>              Cost     Rate
  
                Repair   12
                Repair   223
                Wear     1000    
                Wear     666
                Fuel     500
                Repair   600
                Fuel     450
                Wear     400
  </code></pre>
  
  <p>Now i want this data as</p>
  
  <pre><code>             Repair    Wear   Fuel
                 825     2066    950
  </code></pre>
  
  <p>Using Sql Query</p>
  
  <p>Thanks in advance      </p>