so this is what I have...
id | name | children | children's age |
---|---|---|---|
1 | Rachel | john | 20 |
1 | Rachel | cell | 10 |
1 | Rachel | jay | 15 |
2 | Jereme | Les | 17 |
2 | Jereme | greg | 5.5 |
2 | Jereme | ven | 27 |
but I'm trying to find a way to get this kind of results......
id | name | child1 | age | child2 | age | child3 | age |
---|---|---|---|---|---|---|---|
1 | Rachel | john | 20 | cell | 10 | jay | 15 |
2 | Jereme | Les | 17 | greg | 5.5 | ven | 27 |
so if I can get any help in the query part.... I'm still a beginner in psql so if you can explain as well... thank you