title: SQL Maybe Pivot? But I need actual value not number
body: <p>I want to put all the column names where it's "Lock" or "Editable" into "Visible by" field for each field name. There are hundred of columns, so I am looking an automated way to do it.</p>
  
  <p>EG:</p>
  
  <pre><code>Field Name                   visible by   Business Development   VC Panel          Admin
  Certification_Complete__c                   Hidden                 Lock             Editable
  Certification_Status__c                     Hidden                 Hidden           Editable    
  </code></pre>
  
  <p>To:</p>
  
  <pre><code>Field Name                  visible by     Business Development    VC Panel        Admin
  Certification_Complete__c  **VC Panel,Admin**   Hidden             Lock            Editable
  Certification_Status__c     **Admin**           Hidden             Hidden          Editable
  </code></pre>
  
  <p>Many thanks</p>