当前位置: 答题翼 > 问答 > 大学本科 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

现有学生表student_tb 其字段有:name(学生姓名) classid(班级编号) sex(学生性别) 统计 student_tb 表中男生人数的SQL是()。


现有学生表student_tb,其字段有:name(学生姓名),classid(班级编号),sex(学生性别),统计 student_tb 表中男生人数的SQL是()。

A、select count(*) from student_tb where sex = "男";

B、select sum(*) from student_tb where sex = "男";

C、select avg(*) from student_tb where sex = "男";

D、select max(*) from student_tb where sex = "男";

请帮忙给出正确答案和分析,谢谢!

参考答案
您可能感兴趣的试题
  • 在Access数据库中,有一个“学生成绩表”,其中包含学籍号、姓名、语文、数学、英语、综合科目等字段,其

  • 设当前表文件中含有字段NAME,系统中有一内存变量的名称也为NAME,命令?NAME显示的结果是______。A.

  • 学生表(id name sex age depart_id depart_name) 存在的函数依赖是id→{name sex age depart_id};dept_id→dept_name 其满足()

  • 学生表(id name sex age depart_id depart_name) 存在函数依赖是id→name sex age depart_id;dept_id→dept_name 其满足()。

  • 假设在一个表的3个字段NAME SEX和BIRTH中分别保存姓名 性别和出生年月数据 则应当为这三个字段分别创建()索引。

  • 现有员工工资表(PAYMENT) 其字段包含如下:员工号(EmployeeID)C(10) 基本工资(BaseFee)N (8.2) 津