Hi I have a Use case in which I have three tables as Teacher table , Courses Table, and TeacherVsCourse Table
| Course_ Id | Name |
| 1 | MathMatics |
| 2 | Physics |
The Teacher Table
| Teacher_ID | Teacher_Name |
| 1 | AAA |
| 2 | BBB |
The TeacherVsCourses Table
| id | Course_id | Teacher_id |
| 1 | 1 | 1 |
| 2 | 2 | 1 |
| 3 | 1 | 2 |
My Application is having MVC in asp.net architecture Now I am saving individual records into the database table as shown below
you can check the image from here i have tried to add image but it gives error so i upload it here
https://imgur.com/a/WQLeYjC
------
what i want onto my view instead of two rows for teacher-id =1 , I need 1 row with comma separated courses how to do it ?
Nikunj SatasiyaRank #302 · 8.3K reputationPosted Jan 4, 2020, 8:06 PM EST
Nikunj SatasiyaRank #302 · 8.3K reputationPosted Jan 4, 2020, 6:30 AM EST
Mark TaborRank #914 · 2.3K reputationPosted Jan 4, 2020, 6:44 AM EST
Nikunj SatasiyaRank #302 · 8.3K reputationPosted Jan 4, 2020, 6:55 AM EST
Mark TaborRank #914 · 2.3K reputationPosted Jan 4, 2020, 7:13 PM EST
Nikunj Satasiya.
Mark TaborRank #914 · 2.3K reputationPosted Jan 7, 2020, 8:53 PM EST
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts