If you want to use this in MySQL, you can use this
select service_id , group_concat(`titlevalue` separator ',') as `your_fild_name` from ( select id, concat(`title`, ':', group_concat(`value` separator ',')) as `titlevalue` from your_table_name group by id, `titlevalue`) tbl group by service_id ;
source
share