How to populate selective values from one column to another column based on condition on second column? I have data in the following format
**name role_id**
-------------------------
jack 6
jill 8
humpty 9
dumpty 9
Looking for Output
**'6' '8' '9'**
-------------------------------
jack jill humpty
NULL NULL dumpty
so how can I segregate data based on role_id?