找回密码
 立即注册

推荐阅读

  • 便民服务
  • 关注我们
  • 社区新手
本帖最后由 dcs-liu 于 2022-2-28 20:20 编辑

今晚作业:命令
1、查询1832班的成绩信息 select*from class1832;
2,查询1833班,语文成绩大于80小于90的成绩信息 select*from class1833 where chinese>80 and chinese<90;
3,查询学生表中5到10行的数据 select*from class where id limit 4,6;
4,显示1832班英语成绩为98,数学成绩为77的姓名与学号, select*from class1832 where english=98 and math=77;
5,查询出1832班成绩并且按语文成绩排序(降序)   select*from class1832 order by chinese desc;
6,查询1833班与1832班,语文成绩与数学成绩都小于80的姓名。select*from class1833 where chinese<80 and math<80 or class1832 where chinese<80 and math<80;
7,查询出没有参加语文考试的学生姓名和班级名称。select*from class where chinese is null;
8,求出班上语文成绩不及格的学生姓名 select*from class where chinese<60;
9,求出每个班的数学平均成绩 select avg(math) from class;
10、求出每个班级语文成绩总分 --涉及到每个的时候都需要分组select sum(chinese) from class group by class;

分享至 : QQ空间
收藏

0 个回复

您需要登录后才可以回帖 登录 | 立即注册