找回密码
 立即注册

推荐阅读

  • 便民服务
  • 关注我们
  • 社区新手
1、查询1832班的成绩信息
2,查询1833班,语文成绩大于80小于90的成绩信息
3,查询学生表中5到10行的数据
4,显示1832班英语成绩为98,数学成绩为77的姓名与学号,
5,查询出1832班成绩并且按语文成绩排序(降序)
6,查询1833班与1832班,语文成绩与数学成绩都小于80的姓名。
7,查询出没有参加语文考试的学生姓名和班级名称。
8,求出班上语文成绩不及格的学生姓名
9,求出每个班的数学平均成绩  select sum(chinese),class from zhang group by class;
10、求出每个班级语文成绩总分 --涉及到每个的时候都需要分组




1. select*from zhang where class=1832;
2. select*from zhang where class=1833 and chinese>80 and chinese<90;
3. select*from zhang limit 4,6;
4. select*from zhang where class=1832 and english=98 and mathematics=77;
5. select chinese,mathematics,english from zhang where class=1832 order by chinese desc;
6. select name from zhang where(class=1832 or class=1833) and chinese<80 and mathematics<80;
7. select name,class from zhang where chinese is null;
8. select name from zhang where chinese<60;
9. select avg(maths),class from zhang group by class;
10. select sum(chinese),class from zhang group by class;
分享至 : QQ空间
收藏

0 个回复

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