GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

1Z0-047_2.pdf - Part II

anillvap 56 Fragen

Quiz starten

Fragen in diesem Quiz (56)

  1. 1View the Exhibit and examine the description of the ORDER_ITEMS and

    PRODUCT_INFORMATION tables.
    The ORDER_ITEM table has records pertaining to details for each product in an order. The

    PRODUCT_INFORMATION table has records for all the products available for ordering.

    Evaluate the following SQL statement:

    SELECT oi.order_id, pi.product_id

    FROM order_items oi RIGHT OUTER JOIN product_information pi

    ON (oi.product_id=pi.product_id);

    Which statement is true regarding the output of this SQL statement?
    1. AA. The query would return the ORDER_ID and PRODUCT_ID for only those products that are

      ordered.
    2. BB. The query would return the ORDER_ID and PRODUCT_ID for the products that are ordered

      as well as for the products that have never been ordered.
    3. CC. The query would return the ORDER_ID and PRODUCT_ID for the products that are ordered

      but not listed in the PRODUCT_INFORMATION table.
    4. DD. The query would return the ORDER_ID and PRODUCT_ID for those products that are ordered

      as well as for the products that have never been ordered, and for the products that are not

      listed in the PRODUCT_INFORMATION table.
  2. 2Evaluate the following statement:

    CREATE TABLE bonuses(employee_id NUMBER, bonus NUMBER DEFAULT 100);

    The details of all employees who have made sales need to be inserted into the BONUSES table.

    You can obtain the list of employees who have made sales based on the SALES_REP_ID

    column of the ORDERS table.

    The human resources manager now decides that employees with a salary of $8,000 or less

    should receive a bonus. Those who have not made sales get a bonus of 1% of their salary. Those

    who have made sales get a bonus of 1% of their salary and also a salary increase of 1%. The

    salary of each employee can be obtained from the EMPLOYEES table.

    Which option should be used to perform this task most efficiently?
    1. AA. MERGE
    2. BB. Unconditional INSERT
    3. CC. Conditional ALL INSERT
    4. DD. Conditional FIRST INSERT
  3. 3Which statement is true regarding the ROLLUP operator specified in the GROUP BY clause of a

    SQL statement?
    1. AA. It produces only the subtotals for the groups specified in the GROUP BY clause.
    2. BB. It produces only the grand totals for the groups specified in the GROUP BY clause.
    3. CC. It produces higher-level subtotals, moving from right to left through the list of grouping columns

      specified in the GROUP BY clause.
    4. DD. It produces higher-level subtotals, moving in all the directions through the list of grouping

      columns specified in the GROUP BY clause.
  4. 4View the Exhibit and examine DEPARTMENTS and the LOCATIONS tables.
    Evaluate the following SQL statement:

    SELECT location_id, city

    FROM locations

    l WHERE NOT EXISTS (SELECT location_id

    FROM departments

    WHERE location_id <> l.location_id);

    This statement was written to display LOCATION_ID and CITY where there are no departments

    located. Which statement is true regarding the execution and output of the command?
    1. AA. The statement would execute and would return the desired results.
    2. BB. The statement would not execute because the = comparison operator is missing in the

      WHERE clause of the outer query.
    3. CC. The statement would execute but it will return zero rows because the WHERE clause in the

      inner query should have the = operator instead of <>.
    4. DD. The statement would not execute because the WHERE clause in the outer query is missing

      the column name for comparison with the inner query result.
  5. 5Evaluate the following SQL statements that are issued in the given order:



    CREATE TABLE emp

    (emp_no NUMBER(2) CONSTRAINT emp_emp_no_pk PRIMARY KEY,

    ename VARCHAR2(15),

    salary NUMBER(8,2),

    mgr_no NUMBER(2) CONSTRAINT emp_mgr_fk REFERENCES emp);

    ALTER TABLE emp

    DISABLE CONSTRAINT emp_emp_no_pk CASCADE;

    ALTER TABLE emp

    ENABLE CONSTRAINT emp_emp_no_pk;



    What would be the status of the foreign key EMP_MGR_FK?
    1. AA. It would be automatically enabled and deferred.
    2. BB. It would be automatically enabled and immediate.
    3. CC. It would remain disabled and has to be enabled manually using the ALTER TABLE command.
    4. DD. It would remain disabled and can be enabled only by dropping the foreign key constraint and

      re-creating it.
  6. 6View the Exhibit and examine the structure of the LOCATIONS and DEPARTMENTS tables.
    Which SET operator should be used in the blank space in the following SQL statement to display

    the cities that have departments located in them?



    SELECT location_id, city

    FROM locations

    ____

    SELECT location_id, city

    FROM locations JOIN departments

    USING(location_id);
    1. AA. UNION
    2. BB. MINUS
    3. CC. INTERSECT
    4. DD. UNION ALL
  7. 7Which CREATE TABLE statement is valid?
    1. AA. CREATE TABLE ord_details

      (ord_no NUMBER(2) PRIMARY KEY,

      item_no NUMBER(3) PRIMARY KEY,

      ord_date date NOT NULL);
    2. BB. CREATE TABLE ord_details

      (ord_no NUMBER(2) UNIQUE, NOT NULL,

      item_no NUMBER(3),

      ord_date date DEFAULT SYSDATE NOT NULL);
    3. CC. CREATE TABLE ord_details

      (ord_no NUMBER(2) ,
      item_no NUMBER(3),

      ord_date date DEFAULT NOT NULL,

      CONSTRAINT ord_uq UNIQUE (ord_no),

      CONSTRAINT ord_pk PRIMARY KEY (ord_no));
    4. DD. CREATE TABLE ord_details

      (ord_no NUMBER(2),

      item_no NUMBER(3),

      ord_date date DEFAULT SYSDATE NOT NULL,

      CONSTRAINT ord_pk PRIMARY KEY (ord_no, item_no));
  8. 8Evaluate the following SELECT statement and view the Exhibit to examine its output:
    SELECT constraint_name, constraint_type, search_condition, r_constraint_name, delete_rule,

    status FROM user_constraints

    WHERE table_name = ORDERS

    Which two statements are true about the output? (Choose two.)
    1. AA. In the second column, indicates a check constraint.
    2. BB. The STATUS column indicates whether the table is currently in use.
    3. CC. The R_CONSTRAINT_NAME column gives the alternative name for the constraint.
    4. DD. The column DELETE_RULE decides the state of the related rows in the child table when the

      corresponding row is deleted from the parent table.
  9. 9Which statement is true regarding Flashback Version Query?
    1. AA. It returns versions of rows only within a transaction.
    2. BB. It can be used in subqueries contained only in a SELECT statement.
    3. CC. It will return an error if the undo retention time is less than the lower bound time or SCN

      specified.
    4. DD. It retrieves all versions including the deleted as well as subsequently reinserted versions of the

      rows.
  10. 10Which two statements are true regarding multiple-row subqueries? (Choose two.)
    1. AA. They can contain group functions.
    2. BB. They always contain a subquery within a subquery.
    3. CC. They use the < ALL operator to imply less than the maximum.
    4. DD. They can be used to retrieve multiple rows from a single table only.
    5. EE. They should not be used with the NOT IN operator in the main query if NULL is likely to be a

      part of the result of the subquery.

Informationen

Beschreibung
Quiz am 1Z0-047_2.pdf - Part II , erstellt von anillvap am 28/01/2014.
Sprache
English
Aufrufe
672
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck