该特定字段可以参考SQL语句中FROM 子句列表中的多个表 5
SELECTtStud.学生IDAS年级,tCourse.课程名称,Avg(tGrade.成绩)AS平均成绩FROMtStudINNERJOIN(tCourseINNER...
SELECT tStud.学生ID AS 年级, tCourse.课程名称, Avg(tGrade.成绩) AS 平均成绩
FROM tStud INNER JOIN (tCourse INNER JOIN tGrade ON tCourse.课程ID = tGrade.课程ID) ON tStud.学生ID = tGrade.学生ID
GROUP BY tStud.学生ID, tCourse.课程名称
HAVING (((tStud.学生ID)=Left([学生ID],4)))
ORDER BY tStud.学生ID DESC;
这个怎么改啊 展开
FROM tStud INNER JOIN (tCourse INNER JOIN tGrade ON tCourse.课程ID = tGrade.课程ID) ON tStud.学生ID = tGrade.学生ID
GROUP BY tStud.学生ID, tCourse.课程名称
HAVING (((tStud.学生ID)=Left([学生ID],4)))
ORDER BY tStud.学生ID DESC;
这个怎么改啊 展开
2个回答
2015-06-04
展开全部
SELECT tStud.学生ID AS 年级, tCourse.课程名称, Avg(tGrade.成绩) AS 平均成老氏绩
FROM tStud INNER JOIN (
select * from tCourse INNER JOIN tGrade ON tCourse.课程ID = tGrade.课ID)
ON tStud.学生ID = tGrade.学生ID
GROUP BY tStud.学生ID, tCourse.课程名称
谈含银 HAVING (((tStud.学生ID)=Left([学生ID],4)))
ORDER BY tStud.学生ID DESC;
要查表 select 关键字含宴怎么能没有???
FROM tStud INNER JOIN (
select * from tCourse INNER JOIN tGrade ON tCourse.课程ID = tGrade.课ID)
ON tStud.学生ID = tGrade.学生ID
GROUP BY tStud.学生ID, tCourse.课程名称
谈含银 HAVING (((tStud.学生ID)=Left([学生ID],4)))
ORDER BY tStud.学生ID DESC;
要查表 select 关键字含宴怎么能没有???
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询