I have table prod and have three column id,name and maturity as shown below.
id name maturity
-------------------------------
224 cash 1d
224 cash 2d
224 cash 3d
224 cash 4d
225 bond 5w
225 bond 6w
225 bond 7w
225 bond 8w
Here i need the output like( i mean if i fire an sql statement)
224 cash 1d,2d,3d,4d
225 bond 5w,6w,7w,8w
can some oone please help in this.