ID | Subject | Grade
12113 BM A
12113 BI A
12113 MM A
12113 SJ A
12113 GE B
12113 SV A
12113 PJ A
12112 BM A
12112 BI A
12112 MM A
12112 SJ A
12112 GE A
12112 SV A
12112 PJ A
Hie all, above are the sample table of showing the studentID with multiple subject takens. I couldnt figure out how to use mysql query to check if the same studentID has score A for all subjects.
was trying to use HAVING MAX(Grade) = 'A' but doesnt help. any advice?
1 Answer