title: convert Rows to Columns in SQL with same ID
body: <p>Folks, </p>
  
  <p>I have a table with data as below.</p>
  
  <p><a href="https://i.stack.imgur.com/QjYK7.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>Please advise sql logic to be applied to achieve this output.</p>