title: How to display distinct column values into different column and values of different columns in a single column?
body: <pre><code>DAY       PERIOD     YEAR   SEC      TeacherID
  
  Monday         1        3     C         100010
  Monday         2        3     C         100011
  Tuesday        1        3     C         100011
  Tuesday        2        3     C         100010
  
  
  Display for TeacherID 100010
  
  Period      Monday     Tuesday
       1         3,C         
       2                     3,C 
  </code></pre>
  
  <p>Help me or correct me if you think I am doing wrong.</p>