STID |
SName |
SMobile |
SAddress |
SCollege |
1 |
Madhukar |
6787687645 |
Mithapur |
Patna AN College |
2 |
Divya |
8796543456 |
Thane, Mumbai |
Pune College |
I want it to look like this:
Madhukar |
Divya |
6787687645 |
| Mithapur, Patna |
| AN College |
|8796543456 |
|Thane, Mumbai |
|Pune College |
Is it possible in SQL? Any help would be appreciated. I have tried using pivot table but can't get the code right