I am trying to restructure the way the data is displayed
I have a table with the following structure
ID Key Value
1 OrgName Google
1 email John.Smith@gmail.com
1 Status active
1 givenName John
1 sn Smith
1 userName JSmith
2 OrgName Yahoo
2 email Paul.Jonesh@yahoo.com
2 Status active
2 givenName Paul
2 sn Jones
2 userName PJones
How can I write an SQL query that will return it in this format
ID givenName sn
1 John Smith
2 Paul Jones