nerdexam
Oracle

1Z0-007 · Question #165

Examine the structure of the EMPLOYEES table: What is the correct syntax for an inline view?

The correct answer is A. SELECT a.last_name, a.salary, a.department_id. This SQL statement shows correct syntax to build inline views. You must enclose the query text for the inline view in parentheses and also give a label for the inline view so that columns in it can be referenced later. In answer A inline view is marked as Incorrect Answers B…

Displaying Data from Multiple Tables and Subqueries

Question

Examine the structure of the EMPLOYEES table:

What is the correct syntax for an inline view?

Exhibit

1Z0-007 question #165 exhibit

Options

  • ASELECT a.last_name, a.salary, a.department_id,
  • Bmaxsal
  • CSELECT a.last name, a.salary, a.department_id FROM employees a
  • DSELECT a.last_name, a.salary, a.department_id FROM employees a
  • ESELECT a.last_name, a.salary, a.department_id FROM employees a

How the community answered

(31 responses)
  • A
    77% (24)
  • B
    6% (2)
  • C
    13% (4)
  • D
    3% (1)

Explanation

This SQL statement shows correct syntax to build inline views. You must enclose the query text for the inline view in parentheses and also give a label for the inline view so that columns in it can be referenced later. In answer A inline view is marked as Incorrect Answers B: This SQL statement will fail because it is not correct syntax for inline views. There is no a label for this inline view also. C: This SQL statement will fail because it is not correct syntax for inline views. There is no a label for this inline view also. D: This SQL statement will fail because it is not correct syntax for inline views. There is no a label for this inline view also.

Topics

#inline view#FROM clause subquery#subquery syntax#derived table

Community Discussion

No community discussion yet for this question.

Full 1Z0-007 Practice