There is a table in my postgres database that contains 4 digit years in a string format concat with each other -
rollno | year ----------------------------------- 00001 | 201220132014 ----------------------------------- 00002 | 2013201420152016 ----------------------------------- 00003 | 2015 -----------------------------------
I have above data in my postgres table, I want my data to be separated by comma as below example :
rollno | year ----------------------------------- 00001 | 2012,2013,2014 ----------------------------------- 00002 | 2013,2014,2015,2016 ----------------------------------- 00003 | 2015 -----------------------------------