in this example, I have different values about same user. so I have to get all those values in single row.
user_id key value
------- -------- -----------
123 name thomps
123 url thomps.com
123 email [email protected]
456 name hond
456 url hond.com
456 email [email protected]
how to get a list merging rows like this:
user_id name url email
------- ---- ---- ------
123 thomps thomps.com [email protected]
456 hond hond.com [email protected]
I tried using grop_concat and join sub-query but no success