搜题
用户您好, 请在下方输入框内搜索其它题目:
搜题
题目内容 (请给出正确答案)
提问人:网友 发布时间:
【单选题】

The EMP table has these columns:<br /> ENAME VARCHAR2(35)<br /> SALARY NUMBER(8,2)<br /> HIRE_DATE DATE<br /> Management wants a list of names of employees who have been with the company for more than five years.<br /> 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;

更多“ The EMP table has these columns:<br /> ENAME VARCHAR2(35)<br /> SALARY NUMBER(8,2)<br /> HIRE_DATE DATE<br /> Management wants a list of names of employees who have been with the company for more than five years.<br /> Which SQL statement displays the required results?()”相关的问题
第3题

A、An EMP table is created if a table does not exist. Otherwise, if the EMP table is appended with the loaded data.  B、The SQL* Loader data file myfile1.dat has the column names for the EMP table.  C、The SQL* Loader operation fails because no record terminators are specified.  D、Field names should be the first line in the both the SQL* Loader data files.  E、The SQL* Loader operation assumes that the file must be a stream record format file with the normal carriage return string as the record terminator.  

点击查看答案
第4题

A、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);  B、CREATE TABLE EMP (empno NUMBER(4), ename VARCNAR2(35), deptno NUMBER(7,2) CONSTRAINT emp_deptno_fk REFERENCES dept (deptno));  C、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));  D、CREATE TABLE EMP (empno NUMBER(4), ename VARCNAR2(35), deptno NUMBER(7,2) FOREIGN KEY CONSTRAINT emp deptno fk REFERENCES dept (deptno));  

点击查看答案
第5题

A、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);  B、CREATE TABLE EMP (empno NUMBER(4), ename VARCNAR2(35), deptno NUMBER(7,2) CONSTRAINT emp_deptno_fk REFERENCES dept (deptno));  C、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));  D、CREATE TABLE EMP (empno NUMBER(4), ename VARCNAR2(35), deptno NUMBER(7,2) FOREIGN KEY CONSTRAINT emp deptno fk REFERENCES dept (deptno));  

点击查看答案
第6题

A、Exhibit A  B、Exhibit B  C、The query returns no rows  D、The query fails because the outer query is retrieving more than one column  E、The query fails because both the inner and outer queries are retrieving data from the same table.  

点击查看答案
第7题

A、SELECT last_name, 12*salary* commission_pct FROM emp;  B、SELECT last_name, 12*salary* (commission_pct,0) FROM emp;  C、SELECT last_name, 12*salary*(nvl(commission_pct,0)) FROM emp;  D、SELECT last_name, 12*salary*(decode(commission_pct,0)) FROM emp;  

点击查看答案
第8题

A、SELECT last_name, 12*salary* commission_pct FROM emp;  B、SELECT last_name, 12*salary* (commission_pct,0) FROM emp;  C、SELECT last_name, 12*salary*(nvl(commission_pct,0)) FROM emp;  D、SELECT last_name, 12*salary*(decode(commission_pct,0)) FROM emp;  

点击查看答案
第9题

A、Data is redacted for the EMP.SAL column only if the SCOTT session does not have the MGR role set.  B、Data is redacted for EMP.SAL column only if the SCOTT session has the MGR role set.  C、Data is never redacted for the EMP_V.SAL column.  D、Data is redacted for the EMP_V.SAL column only if the SCOTT session has the MGR role set.  E、Data is redacted for the EMP_V.SAL column only if the SCOTT session does not have the MGR role set.  

点击查看答案
第10题

A、You cannot use the EMP_ID_SEQ sequence to populate the JOB_ID column.  B、The EMP_ID_SEQ sequence is invalidated when you modify the EMPLOYEE_ID column.  C、The EMP_ID_SEQ sequence is not affected by modifications to the EMPLOYEES table.  D、Any other column of NUMBER data type in your schema can use the EMP_ID_SEQ sequence.  E、The EMP_ID_SEQ sequence is dropped automatically when you drop the EMPLOYEES table.  F、The EMP_ID_SEQ sequence is dropped automatically when you drop the EMPLOYEE_ID column.  

点击查看答案
客服
TOP

请使用微信扫码支付

订单号:
遇到问题请联系在线客服