I have a table, which has a field "SendPDF" varchar(max). In that column I have values like
3065-Employee,1206-Company Admin
3065-Employee
1206-Company Admin,265-Employee,1324-Company Admin
........
3065-Employee this means 3065 is Id of the employee, 1206 is Id of Company Admin and same for the other records. Now what I want is I need to get the names on the basis of their usertype (i.e. Employee or either Company Admin). So the result from above records would be
Ajay Sharma, Mahesh Singh
Ajay Sharma
Mahesh Singh, Rajesh Tiwari, Ramesh Vyas
....
How can I prepare a query?