欢迎来到建筑考试题库网 建筑考试题库官网
全部科目 > Oracle认证考试 > 1Z0-007

单项选择题

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;

点击查看答案

相关考题

  • 单项选择题
    What is necessary for your query on an existing view to execute successfully? ()

    A. The underlying tables must have data.
    B. You need SELECT privileges on the view.
    C. The underlying tables must be in the same schema.
    D. You need SELECT privileges only on the underlying tables.

  • 多项选择题
    Which two statements accurately describe a role? ()

    A. A role can be given to a maximum of 1000 users.
    B. A user can have access to a maximum of 10 roles.
    C. A role can have a maximum of 100 privileges contained in it.
    D. Privileges are given to a role by using the CREATE ROLE statement.
    E. A role is a named group of related privileges that can be granted to the user.
    F. A user can have access to several roles, and several users can be assigned the same role.

  • 单项选择题
    In which case would you use a FULL OUTER JOIN? ()

    A. Both tables have NULL values.
    B. You want all unmatched data from one table.
    C. You want all matched data from both tables.
    D. You want all unmatched data from both tables.
    E. One of the tables has more data than the other.
    F. You want all matched and unmatched data from only one table.

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题