title: SQL to read Grid Matrix
body: <p>I have a table (Table 1) as below: </p>
  
  <p><a href="https://i.stack.imgur.com/DmZOM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DmZOM.png" alt="enter image description here"></a></p>
  
  <p>It is a Grid Matrix for shoe size. </p>
  
  <p>I wanted to write an SQL statement to read from this Table 1 and display as below </p>
  
  <p><a href="https://i.stack.imgur.com/iPGoN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iPGoN.png" alt="enter image description here"></a></p>
  
  <p>I have run out of idea how to construct the SQL for this. </p>