欢迎来到易学考试网 易学考试官网
全部科目 > Oracle认证考试 > 1Z0-007

单项选择题

Click the Exhibit button and examine the data in the EMPLOYEES and DEPARTMENTS tables.You want to retrieve all employees, whether or not they have matching departments in the departments table. Which query would you use?()

    A.SELECT last_name, department_name FROM employees NATURAL JOIN departments;
    B.SELECT last_name, department_name FROM employees JOIN departments ;
    C.SELECT last_name, department_name FROM employees e JOIN departments d ON (e.department_id = d.department_id);
    D.SELECT last_name, department_name FROM employees e RIGHT OUTER JOIN departments d ON (e.department_id = d.department_id);
    E.SELECT last_name, department_name FROM employees FULL JOIN departments ON (e.department_id = d.department_id);
    F.SELECT last_name, department_name FROM employees e LEFT OUTER JOIN departments d ON (e.department_id = d.department_id);

点击查看答案

相关考题

  • 单项选择题
    Which SQL statement generates the alias Annual Salary for the calculated column SALARY*12?()

    A.SELECT ename, salary*12 'Annual Salary' FROM employees;
    B.SELECT ename, salary*12 "Annual Salary" FROM employees;
    C.SELECT ename, salary*12 AS Annual Salary FROM employees;
    D.SELECT ename, salary*12 AS INITCAP("ANNUAL SALARY") FROM employees

  • 单项选择题
    What is true of using group functions on columns that contain NULL values?()

    A.Group functions on columns ignore NULL values.
    B.Group functions on columns returning dates include NULL values.
    C.Group functions on columns returning numbers include NULL values.
    D.Group functions on columns cannot be accurately used on columns that contain NULL values.
    E.Group functions on columns include NULL values in calculations if you use the keyword INC_NULLS.

  • 多项选择题
    Which two statements about sequences are true? ()

    A.You use a NEXTVAL pseudo column to look at the next possible value that would be generated from a sequence, without actually retrieving the value.
    B.You use a CURRVAL pseudo column to look at the current value just generated from a sequence, without affecting the further values to be generated from the sequence.
    C.You use a NEXTVAL pseudo column to obtain the next possible value from a sequence by actually retrieving the value from the sequence.
    D.You use a CURRVAL pseudo column to generate a value from a sequence that would be used for a specified database column.
    E.If a sequence starting from a value 100 and incremented by 1 is used by more than one application, then all of these applications could have a value of 105 assigned to their column whose value is being generated by the sequence.
    F.You use a REUSE clause when creating a sequence to restart the sequence once it generates the maximum value defined for the sequence.

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

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