查询2年级所有年级不超过15岁的李姓男同学的英语成绩,并从高到低排序(有course表,student表以及SC表),语句如下:
select * from course where course.course_name='English' and course.course_grade=2 join SC on course.course_id=SC.course_id join student on student.student_id=SC.student_id where student.student_name like '李%',student.student_sex='男' and student.student_age<=15 order by course_score desc
go
请教各位大神我这样写对么?
select * from course join SC on course.course_id=SC.course_id join student on student.student_id=SC.student_id where course.course_name='English' and course.course_grade=2 and student.student_name like '李%' and student.student_sex='男' and student.student_age<=15 order by course_score desc