I am facing an issue to convert two different columns into two comma separated lists. I am having two columns with Name Bachelor and Masters which are holding different digress. Now I need to convert both of them into comma separate lists
create table #user (Bachelor varchar(25),Masters varchar(25))
insert into #user (Bachelor,Masters) values ('B.A','M.A')
insert into #user (Bachelor,Masters) values ('B.E','MCA')
insert into #user (Bachelor,Masters) values ('B.Tech','M.Tech')
I need two columns which are having comma separate values as below.
Bachelor Master
B.A,B.E,B.Tech M.A,MCA,M.Tech
Your help is appreciated.