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

Quiz

Oracle Total Tester

Brandon Gagon 27 questions

Take the quiz

Questions in this quiz (27)

  1. 1Which of the following statements accurately describes the implication of executing the following statement
    (select all that apply)

    UPDATE orders SET order_total = order_total + 100 WHERE product_id = 2302
    1. AThe ORDER_TOTAL column of all rows in the ORDERS table is incremented by 100; but a commit is required to make the changes permanent
    2. BThe ORDER_TOTAL column of all rows in the ORDERS table with PRODUCT_ID values of 2302 are incremented by 100
    3. CThe update can be undone by executing a rollback command
    4. DA commit is not required to make the changes permanent since the UPDATE command is a DDL command
  2. 2What value is returned after executing the following statement?

    SELECT INSTR(SUBSTR(decode(6/3*2,4,'abcabcabc',1, 'bcabcabca','cabcabcab'), 9), 'c')
    from dual
    1. A0
    2. B2
    3. C1
    4. DNone of the above
  3. 3If the current date is March 3, 2008, what format specification will return the date as the string "The Third of March 2008?"
    1. Aselect to_char(sysdate, '"The" fmDdspth "of" Month yyyy') from dual;
    2. Bselect to_char(sysdate, 'The fmDdspth of Month yyyy') from dual;
    3. Cselect to_char(sysdate, 'fmDdspth Month yyyy') from dual;
    4. Dselect to_char(sysdate,
  4. 4For which data types can the group functions MAX and MIN be used?
    1. ACLOB
    2. BDATE
    3. CLONG
    4. DNUMBER
    5. EVARCHAR2
  5. 5The following query is written to retrieve all those product IDs from the SALES table that have more than 55000 sold and have been ordered more than 10 times.

    SELECT prod_id
    FROM sales
    WHERE quantity_sold > 55000 AND COUNT(*) > 10
    GROUP BY prod_id
    HAVING COUNT(*) > 10
    1. AIt executes successfully and generates the required result
    2. BIt produces an error because count(*) should be specified in the SELECT clause also
    3. CIt produces an error because count(*) should be only in the HAVING clause and not in the WHERE clause
    4. DIt executes successfully but produces no result because COUNT (prod_id) should be used instead of COUNT(*)
  6. 6Which of the following statements are correct about undo?
    (Choose all that apply.)

    1. AOne database can have many undo tablespaces.
    2. BOne transaction can use many undo segments.
    3. CUndo segments and rollback segments cannot coexist.
    4. DOne undo segment can protect many transactions.
    5. EOne instance can have many undo tablespaces.
  7. 7Assuming SYSDATE=30-DEC-2007, what value is returned after executing the following statement?
    (Choose the best answer.)

    SELECT TRUNC(SYSDATE,'YEAR') FROM DUAL;
    1. A01-JAN-2007
    2. B31-DEC-2007
    3. CNone of the above
    4. D01-JAN-2008
  8. 8What will happen if you query the EMP table shown below with the following?

    --------------------------
    EMP Table
    --------------------------
    Column Datatype Length
    --------------------------
    EMPNO NUMBER 4
    ENAME VARCHAR2 30
    SALARY NUMBER 14,2
    COMM NUMBER 10,2
    DEPTNO NUMBER 2
    --------------------------
    SELECT empno, DISTINCT ename, salary
    FROM emp;
    1. ADISTINCT is not a valid keyword in SQL.
    2. BNo values will be displayed because the statement will return an error.
    3. CEMPNO and unique values of the two columns, ENAME and SALARY, are displayed.
    4. DEMPNO, unique values of ENAME, and then SALARY are displayed.
  9. 9Which normal form is a table in if it has no multi-valued attributes and no partial dependencies?
    1. AThird normal form
    2. BFirst normal form
    3. CFourth normal form
    4. DSecond normal form
  10. 10Examine the SQL statement that creates ORDERS table:

    CREATE TABLE orders (SER_NO NUMBER UNIQUE, ORDER_ID NUMBER, ORDER_DATE DATE NOT NULL, STATUS VARCHAR2(10) CHECK (status IN (‘CREDIT’, ‘CASH’)), PROD_ID NUMBER REFERENCES PRODUCTS(PRODUCT_ID), ORD_TOTAL NUMBER, PRIMARY KEY (order_id, order_date));

    For which columns would an index be automatically created when you execute the above SQL statement?
    (Choose two.)
    1. AORD_TOTAL
    2. BORDER_ID
    3. CSTATUS
    4. DSER_NO
    5. EPROD_ID
    6. Fcomposite index on ORDER_ID and ORDER_DATE

Information

Description
Quiz on Oracle Total Tester, created by Brandon Gagon on 10/02/2019.
Language
English
Views
6
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?