GoConqr has a new look! Let us know what you think.

Quiz

1Z0-047_2.pdf - Part I

anillvap 56 questions

Take the quiz

Questions in this quiz (56)

  1. 1You need to load information about new customers from the NEW_CUST table into the tables

    CUST and CUST_SPECIAL. If a new customer has a credit limit greater than 10,000, then the

    details have to be inserted into CUST_SPECIAL. All new customer details have to be inserted

    into the CUST table. Which technique should be used to load the data most efficiently?
    1. Aexternal table
    2. Bthe MERGE command
    3. Cthe multitable INSERT command
    4. DINSERT using WITH CHECK OPTION
  2. 2View the Exhibit and examine the description of the CUSTOMERS table.

    You want to add a constraint on the CUST_FIRST_NAME column of the CUSTOMERS table so

    that the value inserted in the column does not have numbers.

    Which SQL statement would you use to accomplish the task?
    1. AALTER TABLE CUSTOMERS ADD CONSTRAINT cust_f_name

      CHECK(REGEXP_LIKE(cust_first_name,'^A-Z'))NOVALIDATE ;
    2. BALTER TABLE CUSTOMERS ADD CONSTRAINT cust_f_name

      CHECK(REGEXP_LIKE(cust_first_name,'^[0-9]'))NOVALIDATE ;
    3. CALTER TABLE CUSTOMERS ADD CONSTRAINT cust_f_name

      CHECK(REGEXP_LIKE(cust_first_name,'[[:alpha:]]'))NOVALIDATE ;
    4. DALTER TABLE CUSTOMERS ADD CONSTRAINT cust_f_name

      CHECK(REGEXP_LIKE(cust_first_name,'[[:digit:]]'))NOVALIDATE ;
  3. 3Which three tasks can be performed using regular expression support in Oracle Database 10g?

    (Choose three.)
    1. AA. It can be used to concatenate two strings.
    2. BB. It can be used to find out the total length of the string.
    3. CC. It can be used for string manipulation and searching operations.
    4. DD. It can be used to format the output for a column or expression having string data.
    5. EE. It can be used to find and replace operations for a column or expression having string data.
  4. 4View the Exhibit and examine the structure of the EMP table which is not partitioned and not an

    index-organized table.
    Evaluate the following SQL statement:

    ALTER TABLE emp

    DROP COLUMN first_name;

    Which two statements is true regarding the above command? (Choose two.)
    1. AA. The FIRST_NAME column would be dropped provided it does not contain any data.
    2. BB. The FIRST_NAME column would be dropped provided at least one or more columns remain in

      the table.
    3. CC. The FIRST_NAME column can be rolled back provided the SET UNUSED option is added to

      the above SQL statement.
    4. DD. The FIRST_NAME column can be dropped even if it is part of a composite PRIMARY KEY

      provided the CASCADE option is used.
  5. 5Evaluate the CREATE TABLE statement:

    CREATE TABLE products

    (product_id NUMBER(6) CONSTRAINT prod_id_pk PRIMARY KEY,

    product_name VARCHAR2(15));

    Which statement is true regarding the PROD_ID_PK constraint?
    1. AA. It would be created only if a unique index is manually created first.
    2. BB. It would be created and would use an automatically created unique index.
    3. CC. It would be created and would use an automatically created no unique index.
    4. DD. It would be created and remains in a disabled state because no index is specified in the

      command.
  6. 6Which two statements are true? (Choose two.)
    1. AA. The USER_SYNONYMS view can provide information about private synonyms.
    2. BB. The user SYSTEM owns all the base tables and user-accessible views of the data dictionary.
    3. CC. All the dynamic performance views prefixed with V$ are accessible to all the database users.
    4. DD. The USER_OBJECTS view can provide information about the tables and views created by the

      user only.
    5. EE. DICTIONARY is a view that contains the names of all the data dictionary views that the user

      can access.
  7. 7View the Exhibit and examine the description of the ORDERS table.
    Which two WHERE clause conditions demonstrate the correct usage of conversion functions?

    (Choose two.)
    1. AA. WHERE order_date > TO_DATE('JUL 10 2006','MON DD YYYY')
    2. BB. WHERE TO_CHAR(order_date,'MON DD YYYY') = 'JAN 20 2003'
    3. CC. WHERE order_date > TO_CHAR(ADD_MONTHS(SYSDATE,6),'MON DD YYYY')
    4. DD. WHERE order_date IN ( TO_DATE('Oct 21 2003','Mon DD YYYY'), TO_CHAR('NOV 21

      2003','Mon DD YYYY') )
  8. 8View the Exhibit and examine the description of the EMPLOYEES table.
    Your company decided to give a monthly bonus of $50 to all the employees who have completed

    five years in the company. The following statement is written to display the LAST_NAME,

    DEPARTMENT_ID, and the total annual salary:

    SELECT last_name, department_id, salary+50*12 "Annual Compensation"

    FROM employees

    WHERE MONTHS_BETWEEN(SYSDATE, hire_date)/12 >= 5;

    When you execute the statement, the "Annual Compensation" is not computed correctly. What

    changes would you make to the query to calculate the annual compensation correctly?
    1. AA. Change the SELECT clause to SELECT last_name, department_id, salary*12+50 "Annual

      Compensation".
    2. BB. Change the SELECT clause to SELECT last_name, department_id, salary+(50*12) "Annual

      Compensation".
    3. CC. Change the SELECT clause to SELECT last_name, department_id, (salary+50)*12 "Annual

      Compensation".
    4. DD. Change the SELECT clause to SELECT last_name, department_id, (salary*12)+50 "Annual

      Compensation".
  9. 9Evaluate the following CREATE SEQUENCE statement:

    CREATE SEQUENCE seq1

    START WITH 100

    INCREMENT BY 10

    MAXVALUE 200

    CYCLE

    NOCACHE;

    The sequence SEQ1 has generated numbers up to the maximum limit of 200. You issue the

    following SQL statement:

    SELECT seq1.nextval FROM dual;

    What is displayed by the SELECT statement?
    1. AA. 1
    2. BB. 10
    3. CC. 100
    4. DD. an error
  10. 10View the Exhibit and examine the description of the EMPLOYEES table.
    You want to display the EMPLOYEE_ID, FIRST_NAME, and DEPARTMENT_ID for all the

    employees who work in the same department and have the same manager as that of the

    employee having EMPLOYEE_ID 104. To accomplish the task, you execute the following SQL

    statement:

    SELECT employee_id, first_name, department_id

    FROM employees

    WHERE (manager_id, department_id) =(SELECT department_id, manager_id

    FROM employees

    WHERE employee_id = 104)

    AND employee_id <> 104;

    When you execute the statement it does not produce the desired output. What is the reason for

    this?
    1. AA. The WHERE clause condition in the main query is using the = comparison operator, instead of

      EXISTS.
    2. BB. The WHERE clause condition in the main query is using the = comparison operator, instead of

      the IN operator.
    3. CC. The WHERE clause condition in the main query is using the = comparison operator, instead of

      the = ANY operator.
    4. DD. The columns in the WHERE clause condition of the main query and the columns selected in

      the subquery should be in the same order.

Information

Description
Quiz on 1Z0-047_2.pdf - Part I , created by anillvap on 27/01/2014.
Author
anillvap
Language
English
Views
688
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?