设表SC中存放了学生的学号(Sno)、课程号(Cno)和成绩(Grade),现需要查询选修1号课程的学生平均成绩,下面SQL语句正确的是()。 A: SELECTGrade(AVG) FROM SC WHERE Cno=’1’ B: SELECTGrade(AVG) FROM SC WHERE Sno=’1’ C: SELECTAVG(Grade) FROM SC WHERE Sno=’1’ D: SELECTAVG(Grade) FROM SC WHERE Cno=’1’
设表SC中存放了学生的学号(Sno)、课程号(Cno)和成绩(Grade),现需要查询选修1号课程的学生平均成绩,下面SQL语句正确的是()。 A: SELECTGrade(AVG) FROM SC WHERE Cno=’1’ B: SELECTGrade(AVG) FROM SC WHERE Sno=’1’ C: SELECTAVG(Grade) FROM SC WHERE Sno=’1’ D: SELECTAVG(Grade) FROM SC WHERE Cno=’1’
查询选修了课程号为“C2”的学生中成绩最高的学生的学号,正确的SELECT语句是()。 A: SELECTS B: FROMSC WHEREC C: ='C2'ANDGRADE>=ALL D: (SELECTGRADE FROMSC WHEREC E: ='C2') F: SELECTS G: FROMSC WHEREC H: ='C2'ANDGRADEIN I: (SELECTMAX(GRADE) FROMSC WHEREC J: ='C2') K: SELECTS L: FROMSC WHEREC M: ='C2'ANDGRADE= N: (SELECTMAX(GRADE) FROMSC WHEREC O: ='C2') P: SELECTS Q: FROMSC WHEREC R: ='C2'ANDGRADE>=ANY S: (SELECTGRADE FROMSC WHEREC T: ='C2')
查询选修了课程号为“C2”的学生中成绩最高的学生的学号,正确的SELECT语句是()。 A: SELECTS B: FROMSC WHEREC C: ='C2'ANDGRADE>=ALL D: (SELECTGRADE FROMSC WHEREC E: ='C2') F: SELECTS G: FROMSC WHEREC H: ='C2'ANDGRADEIN I: (SELECTMAX(GRADE) FROMSC WHEREC J: ='C2') K: SELECTS L: FROMSC WHEREC M: ='C2'ANDGRADE= N: (SELECTMAX(GRADE) FROMSC WHEREC O: ='C2') P: SELECTS Q: FROMSC WHEREC R: ='C2'ANDGRADE>=ANY S: (SELECTGRADE FROMSC WHEREC T: ='C2')
1