网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

Selectcount(*)from employee语句得到的结果是()。

  • A、某个记录的信息
  • B、全部记录的详细信息
  • C、所有记录的条数
  • D、得到3条记录

参考答案

更多 “Selectcount(*)from employee语句得到的结果是()。A、某个记录的信息B、全部记录的详细信息C、所有记录的条数D、得到3条记录” 相关考题
考题 已知商品表的关系模式为:商品(商品编号,名称,类型),使用SQL语句查询各类商品的数量,以下正确的是()。A.SELECTCOUNT(类型)AS商品数量,类型FROM商品GROUPBY类型B.SELECTCOUNT(类型)AS商品数量,类型FROM商品GROUPBY商品数量C.SELECTCOUNT(类型)AS商品数量,类型FROM商品GROUPBY商品编号D.SELECTCOUNT(商品编号)AS商品数量,类型FROM商品GROUPBY商品编号

考题 如果学生表中有“所在系”字段,可用SQL语句______来统计全校有多少个系。A.SELECTSUM(所在系)B.SELECTSUM(DISTINCT所在系)C.SELECTCOUNT(所在系)D.SELECTCOUNT(DISTINCT所在系)

考题 设选课表的结构为:(学号、课程号、成绩),其中学号+课程号为主键。要从选课表中统计每个学生选修的课程门数,应使用的SELECT-SQL语句是______。A.SELECTCOUNT(*)FROM选课表B.SELECTCOUNT(*)FROM选课表GROUPBY学号C.SELECTDISTINCTCOUNT(*)FROM选课表D.SELECTDISTINCTCOUNT(*)FROM选课表GROUPBY学号

考题 己知基本表SC(S#,C#,GRADE),则“统计选修了课程的学生人次数”的SQL语句为A.SELECTCOUNT(DISTINCTS#)FROMSCB.SELECTCOUNT(S#)FROMSCC.SELECTCOUNT(*)FROMSCD.SELECTCOUNT(DISTINCT)FROMSC

考题 已知基本表SC(S#,C#,GRADE),则“统计选修了课程的学生人次数”的SQL语句为( )。A.SELECT COUNT(DISTINCTS#)/FROM SCB.SELECT COUNT(S#)/FROM SCC.SELECTCOUNT(*)/FROM SCD.SELECT COUNT (DISTINCT*)/FROM SC

考题 delete from employee语句的作用是( )A.删除当前数据库中整个employee表,包括表结构B.删除当前数据库中employee表内的所有行C.由于没有where子句,因此不删除任何数据D.删除当前数据库中employee表内的当前行

考题 现要统计gz表中职称为“工程师”的人数,实现的SQL语句为( )。 A.Count*FROMgzWHERE职称=‘工程师’B.SELECTCount(*)FROMgzWHERE职称=工程师C. SELECT*FROMgzWHERE职称=‘工程师’D. SELECTCount(*)FROMgzWHERE职称=’工程师’

考题 已知基本表SC(S,C,GRAGE),则“统计选修了课程的学生人次数”的SQL语句为() A、SELECTCOUNT(DISTINCTS#)FROMSCB、SELECTCOUNT(S#)FROMSCC、SELECTCOUNT(*)FROMSCD、SELECTCOUNT(DISTINCT*)FROMSC

考题 查询订购单的数量和所有订购单平均金额的正确命令是()如下关系:客户(客户号,名称,联系人,邮政编码,电话号码)产品(产品号,名称,规格说明,单价)订购单(订单号,客户号,订购日期)订购单名细(订单号,序号,产品号,数量)A、SELECTCOUNT(DISTINCT订单号),AVG(数量*单价)FROM产品JOIN订购单名细ON产品.产品号=订购单名细.产品号B、SELECTCOUNT(订单号),AVG(数量木单价)FROM产品JOIN订购单名细ON产品.产品号=订购单名细.产品号C、SELECTCOUNT(DISTINCT订单号),AVG(数量(单价)FROM产品,订购单名细ON产品.产品号=订购单名细.产品号D、SELECTCOUNT(订单号),AVG(数量*单价)FROM产品,订购单名细ON产品.

考题 回收用户U1,U2和U3在关系employee的salary属性上的UPDATE权限的语句是【 】UPDATE(salary) ON employee FROM Ul,U2,U3。

考题 回收用户U1,U2和U3在关系employee的salary属性上的UPDATE限的语句是A.REVOKE UPDATE(salary) ON employee(U1,U2,U3)B.REVOKE UPDATE(salary)ON employee FROM U1,U2,U3C.REVOKE UPDATE ON employee FROM U1,U2,U3D.REVOKE UPDATE(salary) FROM U1,U2,U3

考题 ● 收回用户li对表employee的查询权限,同时级联收回li授予其他用户的该权限,SQL语句为:(52) select ON TABLE employee FROM li (53) ;(52)A. GRANTB. GIVEC. CALL BACKD. REVOKE(53)A. RESTRICTB. CASCADEC. WITH GRANT OPTIOND. WITH CHECK OPTION

考题 Which of the following statements is used to revoke all DML privileges on table EMPLOYEE from user TOM?() A.REVOKE ALL PRIVILEGES FROM USER tomB.REVOKE ALL ON EMPLOYEE FROM USER tomC.REVOKE EXECUTE ON EMPLOYEE FROM USER tomD.REVOKE PRIVILEGES ON EMPLOYEE FROM USER tom

考题 使用select top 5 * from employee语句得到的结果集中有()条记录。A.10B.2C.5D.6

考题 Selectcount(*)from employee语句得到的结果是()。A.某个记录的信息B.全部记录的详细信息C.所有记录的条数D.得到3条记录

考题 收回用户li对表employee的查询权限,同时级联收旧li授予其他用户的该权限,SQL语句为:(52) select ON TABLE employee FROM li (53) ;(52)A.GRANTB.GIVEC.CALL BACKD.REVOKE

考题 以下查询语句合法的是哪三项?() A.selectempno ,sum(sal) from scott.emp group by deptnoB.select*fromscott.empC.selectsum(sal)fromscott.empgroupbydeptnoD.selectcount(empno) from scott.emp

考题 What type of constraint is used to ensure that each row inserted into the EMPLOYEE table with a value in the WORKDEPT column has a row with a corresponding value in the DEPTNO column of the DEPARTMENT table?()A、A check constraint on the EMPLOYEE tableB、A unique constraint on the EMPLOYEE table WORKDEPT columnC、A foreign key reference from the DEPARTMENT tables DEPTNO column to the WORKDEPT column of the EMPLOYEE tableD、A foreign key reference from the EMPLOYEE tables WORKDEPT column to the DEPTNO column of the DEPARTMENT table

考题 使用select top 5 * from employee语句得到的结果集中有()条记录。A、10B、2C、5D、6

考题 现有表Employee,字段:id(int)、firstname(varchar)、lastname(varchar);以下sql语句错误的是()A、select firstname+’.’+lastnameas’name’from employeeB、select firstname+’.’+lastname=’name’from employeeC、select’name’=firstname+’.’+lastnamefrom employeeD、select firstname,lastname from employee

考题 Which of the following statements is used to revoke all DML privileges on table EMPLOYEE from user TOM?()A、REVOKE ALL PRIVILEGES FROM USER tomB、REVOKE ALL ON EMPLOYEE FROM USER tomC、REVOKE EXECUTE ON EMPLOYEE FROM USER tomD、REVOKE PRIVILEGES ON EMPLOYEE FROM USER tom

考题 Examine the structure of the EMPLOYEES and NEW_EMPLOYEES tables: EMPLOYEES EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2(25) LAST_NAME VARCHAR2(25) HIRE_DATE DATE NEW_EMPLOYEES EMPLOYEE_ID NUMBER Primary Key NAME VARCHAR2 (60) Which DELETE statement is valid?()A、DELETE FROM employees WHERE employee_id = (SELECT employee_id FROM employees);B、DELETE * FROM employees WHERE employee_id = (SELECT employee_id FROM new_ employees);C、DELETE FROM employees WHERE employee_id IN (SELECT employee_id FROM new_employees WHERE name = 'carrey');D、DELETE * FROM employees WHERE employee_id IN (SELECT employee_id FROM new_employees WHERE name = 'carrey');

考题 单选题SQL语句“select count(*)from employee”,需要SqlCommand对象的哪一个方法在执行()。A ExecuteNonQuery()B ExecuteScalar()C EndExecuteReader()D ExecuteXmlReader()

考题 单选题使用select top 5 * from employee语句得到的结果集中有()条记录。A 10B 2C 5D 6

考题 单选题Examine the structure of the EMPLOYEES and NEW_EMPLOYEES tables: EMPLOYEES EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2 (25) LAST_NAME VARCHAR2 (25) HIRE_DATE DATE NEW EMPLOYEES EMPLOYEE_ID NUMBER Primary Key NAME VARCHAR2 (60) Which DELETE statement is valid? ()A DELETE FROM employees WHERE employee_id = (SELECT employee_id FROM employees);B DELETE * FROM employees WHERE employee_id = (SELECT employee_id FROM new_ employees);C DELETE FROM employees WHERE employee_id IN (SELECT employee_id FROM new_employees WHERE name = ('Carrey')'D DELETE * FROM employees WHERE employee_id IN (SELECT employee_id FROM new_employees WHERE last_ name = ('Carrey')'

考题 单选题Selectcount(*)from employee语句得到的结果是()。A 某个记录的信息B 全部记录的详细信息C 所有记录的条数D 得到3条记录

考题 单选题What type of constraint is used to ensure that each row inserted into the EMPLOYEE table with a value in the WORKDEPT column has a row with a corresponding value in the DEPTNO column of the DEPARTMENT table?()A A check constraint on the EMPLOYEE tableB A unique constraint on the EMPLOYEE table WORKDEPT columnC A foreign key reference from the DEPARTMENT tables DEPTNO column to the WORKDEPT column of the EMPLOYEE tableD A foreign key reference from the EMPLOYEE tables WORKDEPT column to the DEPTNO column of the DEPARTMENT table