Can you please help me with the below question with a solution?
I have a table with students' data in as the following:
| Name | Course | Address | Contact | |
|---|---|---|---|---|
| Venu Gopal N | CPA | Hyderabad | test@gmail.com | 999999999 |
| Venu Gopal N | CMA | Hyderabad | test@gmail.com | 999999999 |
| Venu N | CPA | Hyderabad | test1@gmail.com | 999999988 |
| Venu N | EA | Hyderabad | test1@gmail.com | 999999988 |
| Venu N | DA | Hyderabad | test1@gmail.com | 999999988 |
Now I want this table to be displayed as the following:
| Name | Course | Address | Contact | |
|---|---|---|---|---|
| Venu Gopal N | CPA, CMA | Hyderabad | test@gmail.com | 999999999 |
| Venu N | CPA, EA, DA | Hyderabad | test1@gmail.com | 999999988 |
This needs to be done in T-SQL and I have SQL Server 2012 on my system. Can you please provide me with a solution?