Free Oracle 1Z0-071 Exam Questions (page: 11)

Which three statements are true about Data Manipulation Language (DML)?

  1. UPDATE statements can have different subqueries to specify the values for each updated column.
  2. INSERT statements can insert NULLS explicitly into a column.
  3. DELETE statements can remove multiple rows based on multiple conditions.
  4. DML statements require a primary key be defined on a table.
  5. INSERT INTO…SELECT…FROM statements automatically commit.

Answer(s): A,C,E



Examine the description of the SALES table:

The SALES table has 55,000 rows.

Examine this statement:


Which two statements are true?

  1. SALES1 has NOT NULL constraints on any selected columns which had those constraints in the SALES table.
  2. SALES1 is created with 55,000 rows.
  3. SALES1 has PRIMARY KEY and UNIQUE constraints on any selected columns which had those constraints in the SALES table.
  4. SALES1 is created with no rows.
  5. SALES1 is created with 1 row.

Answer(s): A,D


Reference:

https://www.oracle.com/a/ocom/docs/dc/ww-ou-5297-database2019-studyguide-5.pdf



Which three actions can you perform only with system privileges?

  1. Query any table in a database.
  2. Log in to a database.
  3. Access flat files via a database, which are stored in an operating system directory.
  4. Truncate a table in another schema.
  5. Execute a procedure in another schema.
  6. Use the WITH GRANT OPTION clause.

Answer(s): A,B,F



Examine the data in the CUST_NAME column of the CUSTOMERS table.

You want to extract only those customer names that have three names and display the * symbol in place of the first name as follows:

Which two queries give the required output?

  1. SELECT LPAD(SUBSTR(cust_name, INSTR(cust_name, ' ')),LENGTH(cust_name),'*') “CUST NAME”
    FROM customers
    WHERE INSTR(cust_name, ' ',1,2)<>0;
  2. SELECT LPAD(SUBSTR(cust_name, INSTR(cust_name, ' ')),LENGTH(cust_name),'*') “CUST NAME”
    FROM customers
    WHERE INSTR(cust_name, ' ',-1,2)<>0;
  3. SELECT LPAD(SUBSTR(cust_name, INSTR (cust_name ' ')),LENGTH(cust_name) - INSTR(cust_name, ' '), '*') “CUST NAME”
    FROM customers
    WHERE INSTR(cust_name, ' ',1,-2)<>0;
  4. SELECT LPAD(SUBSTR(cust_name, INSTR (cust_name ' ')),LENGTH(cust_name) - INSTR(cust_name, ' '), '*') “CUST NAME”
    FROM customers
    WHERE INSTR(cust_name, ' ',1,2)<>0;

Answer(s): A,B



View the Exhibit and examine the description for the PRODUCTS and SALES table.


PROD_ID is a primary key in the PRODUCTS table and foreign key in the SALES table with ON DELETE CASCADE option. The SALES table contains data for the last three years. You want to remove all the rows from the PRODUCTS table for which no sale was done for the last three years.

Which is the valid DELETE statement?

  1. Option A
  2. Option B
  3. Option C
  4. Option D

Answer(s): C



Viewing page 11 of 77



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

1Z0-071 Exam Discussions & Posts