Free Oracle 1Z0-071 Exam Braindumps (page: 13)

The user SCOTT who is the owner of ORDERS and ORDER_ITEMS tables issues this GRANT command:

GRANT ALL
ON orders, order_items
TO PUBLIC;

What must be done to fix the statement?

  1. PUBLIC should be replaced with specific usernames.
  2. ALL should be replaced with a list of specific privileges.
  3. WITH GRANT OPTION should be added to the statement.
  4. Separate GRANT statements are required for the ORDERS and ORDER_ITEMS tables.

Answer(s): D


Reference:

http://docs.oracle.com/javadb/10.8.3.0/ref/rrefsqljgrant.html



You are designing the structure of a table in which two columns have the specifications:

COMPONENT_ID – must be able to contain a maximum of 12 alphanumeric characters and must uniquely identify the row

EXECUTION_DATETIME – contains Century, Year, Month, Day, Hour, Minute, Second to the maximum precision and is used for calculations and comparisons between components.
Which two options define the data types that satisfy these requirements most efficiently? (Choose two.)

  1. The EXECUTION_DATETIME must be of INTERVAL DAY TO SECOND data type.
  2. The EXECUTION_DATETIME must be of TIMESTAMP data type.
  3. The EXECUTION_DATETIME must be of DATE data type.
  4. The COMPONENT_ID must be of ROWID data type.
  5. The COMPONENT_ID must be of VARCHAR2 data type.
  6. The COMPONENT_ID column must be of CHAR data type.

Answer(s): C,F



You want to display the date for the first Monday of the next month and issue the following command:


What is the outcome?

  1. In generates an error because rrrr should be replaced by rr in the format string.
  2. It executes successfully but does not return the correct result.
  3. It executes successfully and returns the correct result.
  4. In generates an error because TO_CHAR should be replaced with TO_DATE.
  5. In generates an error because fm and double quotation marks should not be used in the format string.

Answer(s): C



Which two statements are true regarding the GROUP BY clause in a SQL statement? (Choose two.)

  1. You can use column alias in the GROUP BY clause.
  2. Using the WHERE clause after the GROUP BY clause excludes the rows after creating groups.
  3. The GROUP BY clause is mandatory if you are using an aggregate function in the SELECT clause.
  4. Using the WHERE clause before the GROUP BY clause excludes the rows before creating groups.
  5. If the SELECT clause has an aggregate function, then those individual columns without an aggregate function in the SELECT clause should be included in the GROUP BY cause.

Answer(s): D,E



Viewing page 13 of 95
Viewing questions 49 - 52 out of 380 questions



Post your Comments and Discuss Oracle 1Z0-071 exam prep with other Community members:

1Z0-071 Exam Discussions & Posts