I'm trying to join 2 tables together and seperate a column into multiple columns based on an id tag.
e.g Table "Name"
id | field_number | value |
---|--------------|------ |
1 | 1 | john |
1 | 2 | murphy|
2 | 1 | mary |
2 | 2 | murphy|
Table "id"
id ¦ user
1 ¦ person1
2 ¦ person2
Result
id ¦ First Name ¦ Last Name ¦ user
1 ¦ john ¦ murhpy ¦ person1
2 ¦ mary ¦ murphy ¦ person2
Is there a simple way of doing this?