The table structure
ID Name Cost
-------------------------
1 Peter 10
1 Peter 20
1 Peter 30
2 Lily 10
2 Lily 20
2 Lily 30
-------------------------
and I will like to achieve something as below for reporting
ID Name Cost
-------------------------
1 Peter 10
20
30
2 Lily 10
20
30
-------------------------
so what I have try is using left join but instead of giving me a results like above, it returns like this, exactly the same with the table structure.
ID Name Cost No Column Name
--------------------------------------
1 Peter 10
1 Peter 20
1 Peter 30
2 Lily 10
2 Lily 20
2 Lily 30
--------------------------------------