title: Writing SQL Unpivot operator for multiple columns - data stacking
body: <p>I am trying to stack a data set using the UNPIVOT operator in SQL, but do not know how to perform the operator when there are multiple columns that need to be unpivoted. </p>
  
  <p>This is the current data structure:</p>
  
  <p><img src="https://i.stack.imgur.com/23BK3.png" alt="Input"></p>
  
  <p>This is my desired output:</p>
  
  <p><img src="https://i.stack.imgur.com/D3KEo.png" alt="Output"></p>
  
  <p>Can anyone help me write the SQL code for to pull data into the unpivoted structure?</p>