title: transpose rows to columns in db2
body: <p>I have a query output as below </p>
  
  <pre><code>Customer policytype plan amount 
  
  Sam      ulip       P1   250
  
  Sam      ulife      u1   435
  
  Sam      Ulip       P2   370
  
  Hazar    Ulip       P1   679
  
  Hazar    Ulife      u1   567
  </code></pre>
  
  <p>And so on .... </p>
  
  <p>I need to transpose above output as follows </p>
  
  <pre><code>Customer ulip ulife
  
  Sam      250  435
  
  Sam      370  Null 
  
  Hazar    679  567
  </code></pre>
  
  <p>Can someone help me to achieve above result in db2</p>