题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-10-21 10:49:02

[单项选择] 如果对关系emp(eno,ename,salary)成功执行下面的SQL语句: CREATE CLUSTER INDEX name_index ON emp(salary) 对此结果的正确描述是()。
A. 在emp表上按salary升序创建了一个唯一索引
B. 在emp表上按salary降序创建了一个唯一索引
C. 在emp表上按salary升序创建了一个聚簇索引
D. 在emp表上按salary降序创建了一个聚簇索引

更多"如果对关系emp(eno,ename,salary)成功执行下面的SQ"的相关试题:

[单项选择]如果对关系emp(eno, ename, salary)成功执行下面的SQL语句: CREATE CLUSTER INDEX name index ON emp (salary) 对此结果的正确描述是
A. 在emp表上按salary升序创建了一个唯一索引
B. 在emp表上按salary降序创建了一个唯一索引
C. 在emp表上按salary升序创建了一个聚簇索引
D. 在emp表上按salary降序创建了一个聚簇索引
[单项选择]如果对关系emp(eno,ename,salary)成功执行下面的SQL语句: CREATE CLUSTER INDEXname_index ON emp(salary)对此结果的正确描述是
A. 在emp表上按salary升序创建了一个聚簇索引
B. 在emp表上按salary降序创建了一个聚簇索引
C. 在emp表上按salary升序创建了一个唯一索引
D. 在emp表上按salary降序创建了一个唯一索引
[单项选择]如果对关系emp(eno,ename,salray)成功执行下面的SQL语句:   CREATE CLUSTER INDEX name_index ON emp (salary)   对此结果的正确描述是
A. 在emp表上按salary升序创建了一个唯一索引
B. 在emp表上按salary降序创建了一个唯一索引
C. 在emp表上按salary升序创建了一个聚簇索引
D. 在emp表上按salary降序创建了一个聚簇索引
[单项选择]如果对关系emp(eno,ename,salary)成功执行下面的SQL语句:CREATECLUSTERINDEXname_indexONemp(salary),其结果是()
A. 在emp表上按salary升序创建了一个聚簇索引
B. 在emp表上按salary降序创建了一个聚簇索引
C. 在emp表上按salary升序创建了一个唯一索引
D. 在emp表上按salary降序创建了一个唯一索引
[单项选择] 对于以下SQL语句说法正确的是() SELECT ename FROM emp WHERE sal IN (SELECT MAX(sal) FROM emp GROUP BY deptno);
A. 这个语句是符合语法的
B. 这个语句是不能执行的,因为缺少HAVING子句
C. 这个语句是不能执行的,因为分组的条件列不在SELECT列表中
D. 这个语句是不能执行的,因为GROUP BY子句应该在主查询中,而不是在子查询中
E. 在主查询的WHERE条件中,不应该用IN,而应该用等号
[单项选择]在PL/SQL中定义一个可以存放雇员表(EMP)的员工名称(ENAME)的PL/SQL表类型,应该()
A. type array arr_type[emp.ename%type] index by binary_integer;
B. type table arr_type[emp.ename%type] index by binary_integer;
C. type arr_type is table of emp.ename%type index by binary_integer;
D. type arr_type is pl_sql table of emp.ename%type index by binary_integer;
[单项选择]假设emp表有4条数据,dep表有3条数据,则执行SELECT emp.ename,dep.dname FROM emp,dep的结果为()。
A. 语法错误
B. 有数据行返回,返回的行数要根据表中数据的具体情况来分析
C. 返回3行数据
D. 返回12行数据
[单项选择] The EMP table has these columns: ENAME VARCHAR2(35) SALARY NUMBER(8,2) HIRE_DATE DATE Management wants a list of names of employees who have been with the company for more than five years. Which SQL statement displays the required results?()
A. SELECT ENAME FROM EMP WHERE SYSDATE-HIRE_DATE >5;
B. SELECT ENAME FROM EMP WHERE HIRE_DATE-SYSDATE >5;
C. SELECT ENAME FROM EMP WHERE (SYSDATE_HIRE_DATE)/365 >5;
D. SELECT ENAME FROM EMP WHERE (SYSDATE_HIRE_DATE)*/365 >5;
[单项选择] Evaluate this SQL statement: SELECT ename, sal, 12* sal+100 FROM emp; The SAL column stores the monthly salary of the employee. Which change must be made to the above syntax to calculate the annual compensation as "monthly salary plus a monthly bonus of $100, multiplied by 12"?()
A. No change is required to achieve the desired results.
B. SELECT ename, sal, 12* (sal+100) FROM emp;
C. SELECT ename, sal, (12* sal)+100 FROM emp;
D. SELECT ename, sal +100,*12 FROM emp;
[单项选择]在SQL*PLUS中显示EMP表结构的命令是()
A. LIST EMP
B. DESC EMP
C. SHOW DESC EMP
D. STRUCTURE EMP
E. SHOW STRUCTURE EMP
[多项选择] Evaluate this SQL statement: SELECT e.emp_name, d.dept_name FROM employees e JOIN departments d USING (department_id) WHERE d.department_id NOT IN (10,40) ORSER BY dept_name; The statement fails when executed. Which change fixes the error?()
A. remove the ORDER BY clause
B. remove the table alias prefix from the WHERE clause
C. remove the table alias from the SELECT clause
D. prefix the column in the USING clause with the table alias
E. prefix the column in the ORDER BY clause with the table alias
F. replace the condition "d.department_id NOT IN (10,40)" in the WHERE clause with "d.department_id <> 10 AND d.department_id <> 40"
[单项选择] Evaluate the SQL statement: 1 SELECT a.emp_name, a.sal, a.dept_id, b.maxsal 2 FROM employees a, 3 (SELECT dept_id, MAX(sal) maxsal 4. FROM employees 5 GROUP BY dept_id) b 6 WHERE a.dept_id = b.dept_id 7 AND a. asl < b. maxsal; What is the result of the statement? ()
A. The statement produces an error at line 1.
B. The statement produces an error at line 3.
C. The statement produces an error at line 6.
D. The statement returns the employee name, salary, department ID, and maximum salary earned in the department of the employee for all departments that pay less salary then the maximum salary paid in the company.
E. The statement returns the employee name, salary, department ID, and maximum salary earned in the department of the employee for all employees who earn less than the maximum salary in their department.
[单项选择]设有关系WORK(ENO,CNO,PAY),主码为(ENO,CNO)。按照实体完整性规则()
A. 只有ENO不能取空值
B. 只有CNO不能取空值
C. 只有PAY不能取空值
D. ENO与CNO都不能取空值

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码