from this
| STU | SUB |
| 1 | MAT |
| 1 | CHEM |
| 1 | PHY |
to this
| STU | SUB1 | SUB2 | SUB3 |
| 1 | MAT | CHEM | PHY |
data of 1 student is in 3 rows i want in 1 row in sql
from this
| STU | SUB |
| 1 | MAT |
| 1 | CHEM |
| 1 | PHY |
to this
| STU | SUB1 | SUB2 | SUB3 |
| 1 | MAT | CHEM | PHY |
data of 1 student is in 3 rows i want in 1 row in sql
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh KumarPosted Jan 22, 2025, 8:59 AM
Hello jihok,
Please use this query and you can convert your result,
Amit MohantyPosted Jan 22, 2025, 8:37 AM
Try this: