randomly
ascending by date
descending by date
ascending alphabetically
descending alphabetically
第1题:
randomly
ascending by date
descending by date
ascending alphabetically
descending alphabetically
第2题:
CREATE TABLE EMP (empno NUMBER(4), ename VARCHAR2(35), deptno NUMBER(7,2) NOT NULL, CONSTRAINT emp_deptno_fk FOREIGN KEY deptno REFERENCES dept deptno);
CREATE TABLE EMP (empno NUMBER(4), ename VARCHAR2(35), deptno NUMBER(7,2) CONSTRAINT emp_deptno_fk REFERENCES dept (deptno));
CREATE TABLE EMP (empno NUMBER(4), ename VARCHAR2(35), deptno NUMBER(7,2) NOT NULL, CONSTRAINT emp_deptno_fk REFERENCES dept (deptno) FOREIGN KEY (deptno));
CREATE TABLE EMP (empno NUMBER(4), ename VARCHAR2(35), deptno NUMBER(7,2) FOREIGN KEY CONSTRAINT emp_deptno_fk REFERENCES dept (deptno));
第3题:
SELECT employee_id, last_name, job_id FROM employees WHERE job_id LIKE '%SA/_%' ESCAPE '/';
SELECT employee_id, last_name, job_id FROM employees WHERE job_id LIKE '%SA_';
SELECT employee_id, last_name, job_id FROM employees WHERE job_id LIKE '%SA_' ESCAPE /;
SELECT employee_id, last_name, job_id FROM employees WHERE job_id = '%SA_';
第4题:
You cannot use the EMP_ID_SEQ sequence to populate the JOB_ID column.
The EMP_ID_SEQ sequence is invalidated when you modify the EMPLOYEE_ID column.
The EMP_ID_SEQ sequence is not affected by modifications to the EMPLOYEES table.
Any other column of NUMBER data type in your schema can use the EMP_ID_SEQ sequence.
The EMP_ID_SEQ sequence is dropped automatically when you drop the EMPLOYEES table.
The EMP_ID_SEQ sequence is dropped automatically when you drop the EMPLOYEE_ID column.
第5题:
CREATE VIEW emp_vu AS SELECT employee_id, emp_name, department_id FROM employees WHERE mgr_id IN (102, 120);
CREATE VIEW emp_vu AS SELECT employee_id, emp_name, job_id, department_id FROM employees WHERE mgr_id IN (102, 120);
CREATE VIEW emp_vu AS SELECT department_id, SUM(sal) TOTALSAL FROM employees WHERE mgr_id IN (102, 120) GROUP BY department_id;
CREATE VIEW emp_vu AS SELECT employee_id, emp_name, job_id, DISTINCT department_id FROM employees;
第6题:
CREATE TABLE EMP (empno NUMBER(4), ename VARCNAR2(35), deptno NUMBER(7,2) NOT NULL CONSTRAINT emp_deptno_fk FOREIGN KEY deptno REFERENCES dept deptno);
CREATE TABLE EMP (empno NUMBER(4), ename VARCNAR2(35), deptno NUMBER(7,2) CONSTRAINT emp_deptno_fk REFERENCES dept (deptno));
CREATE TABLE EMP (empno NUMBER(4) ename VARCHAR2(35), deptno NUMBER(7,2) NOT NULL, CONSTRAINT emp_deptno_fk REFERENCES dept (deptno) FOREIGN KEY (deptno));
CREATE TABLE EMP (empno NUMBER(4), ename VARCNAR2(35), deptno NUMBER(7,2) FOREIGN KEY CONSTRAINT emp deptno fk REFERENCES dept (deptno));
第7题:
You cannot use the EMP_ID_SEQ sequence to populate the JOB_ID column.
The EMP_ID_SEQ sequence is invalidated when you modify the EMPLOYEE_ID column.
The EMP_ID_SEQ sequence is not affected by modifications to the EMPLOYEES table.
Any other column of NUMBER data type in your schema can use the EMP_ID_SEQ sequence.
The EMP_ID_SEQ sequence is dropped automatically when you drop the EMPLOYEES table.
The EMP_ID_SEQ sequence is dropped automatically when you drop the EMPLOYEE_ID column.
第8题:
ALTER VIEW EMP_dept_vu (ADD manger_id NUMBER);
MODIFY VIEW EMP_dept_vu (ADD manger_id NUMBER);
ALTER VIEW emp_dept_vu AS SELECT employee_id, employee_name, department_name, manager_id FROM employee e, departments d WHERE e.department _ id = d.department_id;
MODIFY VIEW emp_dept_vu AS SELECT employee_id, employee_name, department_name, manager_id FROM employees e, departments d WHERE e.department _ id = d.department_id;
CREATE OR REPLACE VIEW emp_dept_vu AS SELECT employee_id, employee_name, department_name, manager_id FROM employees e, departments d WHERE e.department _ id = d.department_id;
You must remove the existing view first, and then run the CREATE VIEW command with a new column list to modify a view.
第9题:
You cannot use the EMP_ID_SEQ sequence to populate the JOB_ID column.
The EMP_ID_SEQ sequence is invalidated when you modify the EMPLOYEE_ID column.
The EMP_ID_SEQ sequence is not affected by modifications to the EMPLOYEES table.
Any other column of NUMBER data type in your schema can use the EMP_ID_SEQ sequence.
The EMP_ID_SEQ sequence is dropped automatically when you drop the EMPLOYEES table.
The EMP_ID_SEQ sequence is dropped automatically when you drop the EMPLOYEE_ID column.
第10题:
CREATE TABLE EMP9$# AS (empid number(2));
CREATE TABLE EMP*123 AS (empid number(2));
CREATE TABLE PACKAGE AS (packid number(2));
CREATE TABLE 1EMP_TEST AS (empid number(2));
第11题:
You have no rows in the table.
You have an employee with the name of James.
You cannot roll back to the same savepoint more than once.
Your last update fails to update any rows because employee ID 180 was already deleted.
第12题:
You have no rows in the table.
You have an employee with the name of James.
You cannot roll back to the same savepoint more than once.
Your last update fails to update any rows because employee ID 180 was already deleted.
第13题:
SELECT last_name, 12*salary* commission_pct FROM emp;
SELECT last_name, 12*salary* (commission_pct,0) FROM emp;
SELECT last_name, 12*salary*(nvl(commission_pct,0)) FROM emp;
SELECT last_name, 12*salary*(decode(commission_pct,0)) FROM emp;