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

You want to display 5 percent of the rows from the SALES table for products with the lowest AMOUNT_SOLD and also want to include the rows that have the same AMOUNT_SOLD even if this causes the output to exceed 5 percent of the rows.
Which query will provide the required result?

  1. SELECT prod_id, cust_id, amount_sold
    FROM sales
    ORDER BY amount_sold
    FETCH FIRST 5 PERCENT ROWS WITH TIES;
  2. SELECT prod_id, cust_id, amount_sold
    FROM sales
    ORDER BY amount_sold
    FETCH FIRST 5 PERCENT ROWS ONLY WITH TIES;
  3. SELECT prod_id, cust_id, amount_sold
    FROM sales
    ORDER BY amount_sold
    FETCH FIRST 5 PERCENT ROWS WITH TIES ONLY;
  4. SELECT prod_id, cust_id, amount_sold
    FROM sales
    ORDER BY amount_sold
    FETCH FIRST 5 PERCENT ROWS ONLY;

Answer(s): A



Examine the structure of the MEMBERS table:



You execute the SQL statement:
SQL > SELECT member_id, ' ' , first_name, ' ' , last_name "ID FIRSTNAME LASTNAME " FROM members;

What is the outcome?

  1. It fails because the alias name specified after the column names is invalid.
  2. It fails because the space specified in single quotation marks after the first two column names is invalid.
  3. It executes successfully and displays the column details in a single column with only the alias column heading.
  4. It executes successfully and displays the column details in three separate columns and replaces only the last column heading with the alias.

Answer(s): D



You issue the following command to drop the PRODUCTS table:
SQL > DROP TABLE products;

Which three statements are true about the implication of this command? (Choose three.)

  1. All data along with the table structure is deleted.
  2. A pending transaction in the session is committed.
  3. All indexes on the table remain but they are invalidated.
  4. All views and synonyms on the table remain but they are invalidated.
  5. All data in the table is deleted but the table structure remains.

Answer(s): A,B,D



You execute the following commands:

SQL > DEFINE hiredate = '01-APR-2011'

SQL >SELECT employee_id, first_name, salary
FROM employees
WHERE hire_date > '&hiredate'
AND manager_id > &mgr_id;

For which substitution variables are you prompted for the input?

  1. none, because no input required
  2. both the substitution variables ''hiredate' and 'mgr_id'.
  3. only hiredate'
  4. only 'mgr_id'

Answer(s): D



Viewing page 4 of 95
Viewing questions 13 - 16 out of 380 questions



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

1Z0-071 Exam Discussions & Posts