Oracle 1Z0-071 Exam (page: 9)
Oracle Database SQL
Updated on: 01-Sep-2025

Viewing Page 9 of 77

Examine the structure of the INVOICE table.


Which two SQL statements would execute successfully?

  1. SELECT inv_no, NVL2(inv_date, 'Pending', 'Incomplete')
    FROM invoice;
  2. SELECT inv_no, NVL2(inv_amt, inv_date, 'Not Available')
    FROM invoice;
  3. SELECT inv_no, NVL2(inv_date, sysdate-inv_date, sysdate)
    FROM invoice;
  4. SELECT inv_no, NVL2(inv_amt, inv_amt*.25, 'Not Available')
    FROM invoice;

Answer(s): A,C



Which three statements are true about the ALTER TABLE....DROP COLUMN.... command?

  1. A column can be dropped only if it does not contain any data.
  2. A column can be dropped only if another column exists in the table.
  3. A dropped column can be rolled back.
  4. The column in a composite PRIMARY KEY with the CASCADE option can be dropped.
  5. A parent key column in the table cannot be dropped.

Answer(s): B,D,E



View the exhibit and examine the description of the PRODUCT_INFORMATION table.

Which SQL statement would retrieve from the table the number of products having LIST_PRICE as NULL?

  1. SELECT COUNT (DISTINCT list_price)
    FROM product_information
    WHERE list_price is NULL
  2. SELECT COUNT (NVL(list_price, 0))
    FROM product_information
    WHERE list_price is NULL
  3. SELECT COUNT (list_price)
    FROM product_information
    WHERE list_price i= NULL
  4. SELECT COUNT (list_price)
    FROM product_information
    WHERE list_price is NULL

Answer(s): B



Which three tasks can be performed using SQL functions built into Oracle Database?

  1. displaying a date in a nondefault format
  2. finding the number of characters in an expression
  3. substituting a character string in a text expression with a specified string
  4. combining more than two columns or expressions into a single column in the output

Answer(s): A,B,C



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



Viewing Page 9 of 77



Share your comments for Oracle 1Z0-071 exam with other users:

Saravana Kumar TS 12/8/2023 9:49:00 AM

question: 93 which statement is true regarding the result? sales contain 6 columns and values contain 7 columns so c is not right answer.
INDIA