Oracle Database SQL Language Reference 19c states: " DUAL is a table automatically created by Oracle Database along with the data dictionary. DUAL is in the schema of the user SYS but is accessible by the name DUAL to all users. It has one column, DUMMY, defined to be VARCHAR2(1), and contains one row with a value X. Selecting from the DUAL table is useful for computing a constant expression with the SELECT statement. "
B is correct because DUAL has exactly one column, DUMMY VARCHAR2(1), and one row. F is correct because a query against DUAL can return any number of expressions as columns, and can return multiple rows, for example with a row generator such as SELECT LEVEL, SYSDATE + LEVEL FROM dual CONNECT BY LEVEL < = 5, or by combining DUAL queries with UNION ALL.
A is incorrect because DUAL is accessible to all users through a public synonym. C is incorrect because a query on DUAL can return many columns. D is incorrect because any expression, including function calls and scalar subqueries, can be selected from DUAL. E is incorrect because access to DUAL does not depend on holding SELECT privileges in other schemas; every user can query it.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit