My query returns the following results( with some sample data):
SID FName LName DeptID CourseRequested
100 xxxx yyyy 2353 Algebra
100 xxxx yyyy 2353 Trignometry
100 xxxx yyyy 2356 Biology
100 xxxx yyyy 2356 Chesmistry
This would repeat for all other students. As shown above, a student can request 2 courses in one department ( 2353, 2356 are departmentID's)
Now, I want my report to look like this :
SID FName LName 2353 2356
100 xxxx yyyyy Algebra Biology
100 xxxx yyyy Trignometry Chemistry
So, I used a matrix with row group on StuID, Fname and LName. Column Group on DepartmentID and CourseName on Detail.
But, the result set shows me only the first row with 'Algebra and Biology'. It is not repeating the second set of courses. I need not repeat the StuID,Fname and Lname for the second row.
I dont know what am I doing wrong. Pleas help me. Let me know if there is another approach rather than using the matrix.
So, I have to go with sub reports or Table?
Please help me.