title: SQL to turn rows into column in snowflake
body: <p><a href="https://i.stack.imgur.com/mQrgy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mQrgy.png" alt="Input Data" /></a>I have one table in snowflake like below:</p>
  <p><a href="https://i.stack.imgur.com/CzpAa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CzpAa.png" alt="Expecting Output" /></a></p>
  <p>Could someone help me out on this.</p>