![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello. I want to present my query in a table (it is for flat - report). suppose there are 5 students, and several courses that each course has some major exams (Math, English, ....) and each column represent all the grades of all students that participated the exam. Course No. Math * * * *English *Exam no x. Exam no. y -------------- ------------ --------- -------------- ------------- 10001 * * * * Grade- * * .... * * * * * * * * * *student-1 ... * * * * * * * * * *Grade- * * * * * * * * * *student-2 .. 10002 ... Is there any analytic function for that ? Thanks ![]() |
#3
| |||
| |||
|
|
Hello. I want to present my query in a table (it is for flat - report). suppose there are 5 students, and several courses that each course has some major exams (Math, English, ....) and each column represent all the grades of all students that participated the exam. Course No. Math * * * *English *Exam no x. Exam no. y -------------- ------------ --------- -------------- ------------- 10001 * * * * Grade- * * .... * * * * * * * * * *student-1 ... * * * * * * * * * *Grade- * * * * * * * * * *student-2 .. 10002 ... Is there any analytic function for that ? Thanks ![]() |
#4
| |||
| |||
|
|
Hello. I want to present my query in a table (it is for flat - report). suppose there are 5 students, and several courses that each course has some major exams (Math, English, ....) and each column represent all the grades of all students that participated the exam. Course No. Math * * * *English *Exam no x. Exam no. y -------------- ------------ --------- -------------- ------------- 10001 * * * * Grade- * * .... * * * * * * * * * *student-1 ... * * * * * * * * * *Grade- * * * * * * * * * *student-2 .. 10002 ... Is there any analytic function for that ? Thanks ![]() |
#5
| |||
| |||
|
|
Hello. I want to present my query in a table (it is for flat - report). suppose there are 5 students, and several courses that each course has some major exams (Math, English, ....) and each column represent all the grades of all students that participated the exam. Course No. Math * * * *English *Exam no x. Exam no. y -------------- ------------ --------- -------------- ------------- 10001 * * * * Grade- * * .... * * * * * * * * * *student-1 ... * * * * * * * * * *Grade- * * * * * * * * * *student-2 .. 10002 ... Is there any analytic function for that ? Thanks ![]() |
#6
| |||
| |||
|
#7
| |||
| |||
|
#8
| |||
| |||
|
#9
| |||
| |||
|
#10
| |||
| |||
|
|
select ..., rank () over ( ...) something of above is an analytic function. I don't know what is the best way to do a good query for the above. Need some help, please. Thanks ![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |