title: CROSSTAB and PIVOT
body: <p>I have the following table -</p>
  <pre><code>org_id  et  rt         level     diagnosis   count
  9453    2   AGENCY     SERVICE   MMTA    18
  9453    1   PHYSICIAN  SERVICE   M_WOUND     5
  9453    1   REFERRER   SERVICE   M_WOUND 5
  9453    1   REFERRER   SERVICE   N_WOUND 5
  </code></pre>
  <p>How do I pivot this table such that -</p>
  <pre><code>org_id  et  rt         level     MMTA  M_WOUND   N_WOUND
  9453    2   AGENCY     SERVICE   18   
  9453    1   PHYSICIAN  SERVICE         5
  9453    1   REFERRER   SERVICE   0     5         5
  </code></pre>