Machine-translated by Google. Questions are authored in English.
Top

Discussion

Views constructed from SQL SELECT statements that conform to the SQL-92 standard may not contain:

  • A.GROUP BY.
  • B.
    WHERE.
  • C.ORDER BY.
  • D.FROM.

Answer: C

Correct answer: ORDER BY.

SQL-92 forbids ORDER BY in a view definition, on the ground that a view is a relation and a relation has no inherent order; the ordering belongs to the query that reads the view. WHERE, GROUP BY and FROM are all permitted. Oracle relaxes the restriction, which is a departure from the standard rather than the standard itself.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.