单选题

列出EMP表中,从事每个工种(JOB)的员工人数()

Aselect job from emp;

Bselect job,count(*) from emp;

Cselect distinct job,count(*) from emp;

Dselect job,count(*) from emp group by job;

Eselect job,sum(empno) from emp group by job;

正确答案

来源:www.examk.com

答案解析

相似试题
  • 查询出EMP表中COMM字段为空的记录()

    单选题查看答案

  • emp表是雇员信息表,以下哪个变量可以存放emp表中的一条记录()

    单选题查看答案

  • 限制从EMP表中只选出前5条记录的查语句为()。

    单选题查看答案

  • 授予sa用户在SCOTT.EMP表中SAL列的更新权限的语句是()。

    单选题查看答案

  • 查询出EMP表中1982年及以后入职的员工信息()(注:字段hiredate为入职日期,数据类型为DATE型)

    单选题查看答案

  • Examine the description of the EMPLOYEES table: EMP_ID NUMBER(4) NOT NULL LAST_NAME VARCHAR2(30) NOT NULL FIRST_NAME VARCHAR2(30) DEPT_ID NUMBER(2) JOB_CAT VARCHARD2(30) SALARY NUMBER(8,2) Which statement shows the maximum salary paid in each job category of each department? ()

    单选题查看答案

  • Examine the description of the EMPLOYEES table: EMP_ID NUMBER(4) NOT NULL LAST_NAME VARCHAR2(30) NOT NULL FIRST_NAME VARCHAR2(30) DEPT_ID NUMBER(2) JOB_CAT VARCHARD2(30) SALARY NUMBER(8,2) Which statement shows the maximum salary paid in each job category of each department?()

    单选题查看答案

  • Examine the data in the EMPLOYEES and EMP_HIST tables: The EMP_HIST table is updated at the end of every year. The employee ID, name, job ID, and salary of each existing employee are modified with the latest data. New employee details are added to the table. Which statement accomplishes this task?()

    单选题查看答案

  • 在Oracle中,可以用一个SELECT语句同时从多个表中取出数据,只需在SELECT语句的()子句中列出要从中取出数据的表名称即可。

    单选题查看答案