举一反三
- 21、您有一个Employee的表,包括以下列:lEmployeeIDlEmployeeName您应该使用那种语句以返回表的行数? A: SELECT COUNT(rows) FROM Employee B: SELECT COUNT(*) FROM Employee C: SELECT * FROM Employee D: SELECT SUM(*) FROM Employe
- 以下哪条语句可以实现查询选了课的学生人数( )。 A: select count(*) from sc B: select count(sno) from sc C: select count(distinct sno) from sc D: select count(cno) from sc
- 在员工管理系统中,查询表employee表中所有员工的姓名,字段:id(int),firstname(varchar),lastname(varchar),以下sql语句正确的是()。 A: Select firstname +’.’+ lastname as ‘name’ from employee B: Select firstname +’.’+ lastname from employee C: Select ‘name’= firstname +’.’+ lastname from employee D: Select firstname,lastname from employee
- 若需统计“选课”表中已经选修了课程的学生人数,下面语句正确的是( )。 A: SELECT COUNT(DISTINCT学生号)FROM选课 B: SELECT COUNT(学生号)FROM选课 C: SELECT COUNT(*)FROM选课 D: SELECT COUNT(DISTINCT*)FROM选课
- 查询语句“Select COUNT(*) FROM human”返回( )行。
内容
- 0
查询scott用户的emp表中的总记录数,可以使用下列哪个语句?() A: SELECT MAX(empno) FROM scott.emp; B: SELECT<br/>COUNT(empno) FROM scott.emp; C: SELECT COUNT(comm) FROM scott.emp; D: SELECT COUNT(*) FROM scott.emp;
- 1
employee表中lastname列保存顾客姓,firstname列保存顾客的名,现在,需要查询顾客的姓名的组合,例如,lastname列中的”张“,同一行firstname列中的”国华“,查询结果应该返回”张国华“,则正确的查询语句应该是( ) A: select lastname,firstname from employee B: select * from employee order by lastname,firstname C: select lastname+firstname from employee D: select lastname and firstname from employee
- 2
执行语句“SELECT COUNT (*) FROM human”将返回( )行
- 3
【单选题】下面正确表示Employees表中有多少非NULL的Region列的SQL语句是() A. SELECT count(* ) from Employees B. SELECT count(Region) from Employees C. SELECT count(Distinct Region) from Employees D. SELECT sum(ALL Region) from Employees
- 4
补全语句:select vend_id,count(*) from products where prod_price>=10 group by vend_id ____ count(*)>=2;