title: SQL Server 2008 Pivot Query
body: <p>I have data in a SQL Server 2008 table that looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/bh7TV.png" alt="enter image description here"></p>
  
  <p>I want to pivot it to look like this:</p>
  
  <p><img src="https://i.stack.imgur.com/85Tl2.png" alt="enter image description here"></p>
  
  <p>Basically I want to group on ReadTime and Coater and then pivot on the DataType column. Could someone help me with the T-SQL to do this?</p>