可以参考下面的代码:
select s.姓名, s.专业, sc.成绩, c.课程名称
from 学生基本情况表 s, 成绩表 sc, 课程表 c
where s.学号 = sc.学号 and c.课程编号 = sc.课程编号
and sc.成绩 > 90
扩展资料:
sql语句
删除列:
Alter table table_name drop column column_name--从表中删除一列
添加主键:
Alter table tabname add primary key(col)
平均:
select avg(field1) as avgvalue from table1
最大:
select max(field1) as maxvalue from table1
参考资料来源:百度百科-SQL语句大全
参考资料来源:百度百科-sql语句
select s.姓名, s.专业, sc.成绩, c.课程名称
from 学生基本情况表 s, 成绩表 sc, 课程表 c
where s.学号 = sc.学号 and c.课程编号 = sc.课程编号
and sc.成绩 > 90
简单SQ:select B.姓名,B.专业,C.课程名称,A.成绩 from 成绩表 A left join 学生基本情况表 B on A.学号=B.学号 left join 课程表 C on A.课程编号=C.课程编号 where A.成绩>90----可以给分啦。