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

Quiz

Latest Oracle MINI

Brandon Gagon 17 questions

Take the quiz

Questions in this quiz (17)

  1. 1Which SQL statements would display the value 1890.55 as $1, 890.55?
    (Choose three.)
    1. ASELECT TO_CHAR(1890.55, ‘$99G999D99’)
      FROM DUAL;
    2. BSELECT TO_CHAR(1890.55, ‘$9, 999V99’)
      FROM DUAL;
    3. CSELECT TO_CHAR(1890.55, ‘$99, 999D99’)
      FROM DUAL;
    4. DSELECT TO_CHAR(1890.55, ‘$99G999D00’)
      FROM DUAL;
    5. ESELECT TO_CHAR(1890.55, ‘$0G000D00’)
      FROM DUAL;
  2. 2You are currently located in Singapore and have connected to a remote database in Chicago. You issue the following command:

    SELECT ROUND(SYSDATE - promo_begin_date, 0)
    FROM promotions
    WHERE (SYSDATE - promo_begin_date)/365 > 2

    PROMOTIONS is the public synonym for the public database link for the PROMOTIONS table. What is the outcome?
    1. AAn error because the WHERE condition specified is invalid
    2. BNumber of days since the promo started based on the current Singapore data and time.
    3. CNumber of days since the promo started based on the current Chicago data and time
    4. DAn error because the ROUND function specified is invalid
  3. 3Which of these commands will prevent other sessions from reading rows in the table?
    (Choose the best answer.)
    1. ALOCK TABLE SCOTT.EMP IN EXCLUSIVE MODE;
    2. BOracle does not provide a lock that will prevent others from reading a table.
    3. CDELETE FROM SCOTT.EMP;
    4. DLOCK TABLE SCOTT.EMP IN ROW EXCLUSIVE MODE;
    5. ESELECT * FROM SCOTT.EMP FOR UPDATE;
  4. 4In which two cases would you use an outer join?
    (Choose two.)
    1. AThe tables being joined have NOT NULL columns.
    2. BThe tables being joined have both matched and unmatched data.
    3. CThe tables being joined have only matched data.
    4. DThe tables being joined have only unmatched data.
    5. EOnly when the tables have a primary key/foreign key relationship.
    6. FThe columns being joined have NULL values.
  5. 5Sara wants to update the SALARY column in the OLD_EMPLOYEES table with the value from the EMPLOYEES table for employees in department 90. Which SQL code will accomplish the task?
    1. AUPDATE old_employees a
      FROM employees b
      SET a.salary = b.salary
      WHERE department_id = 90;
    2. BUPDATE old_employees
      SET salary = (SELECT salary FROM employees)
      WHERE department_id = 90;
    3. CUPDATE old_employees a
      SET salary = (SELECT salary FROM employees b
      WHERE a.employee_id = b.employee_id)
      WHERE department_id = 90;
    4. DUPDATE old_employees a
      SET salary = (SELECT salary FROM employees b
      WHERE a.employee_id = b.employee_id
      AND department_id = 90);
  6. 6What are the distinguishing characteristics of a public synonym rather than a private synonym?
    (Choose two correct answers.)
    1. APublic synonyms are always visible to all users.
    2. BPublic synonyms can be accessed by name without a schema name qualifier.
    3. CPublic synonyms can be selected from without needing any permissions.
    4. DPublic synonyms can have the same names as tables or views.
  7. 7Which of the following check constraints will raise an error?
    1. ACONSTRAINT ck_gender CHECK (gender IN ('M', 'F'))
    2. BCONSTRAINT ck_profit CHECK (gross_amt > net_amt)
    3. CCONSTRAINT ck_old_order CHECK (order_date > (SYSDATE -30))
    4. DCONSTRAINT ck_vendor CHECK (vendor_id IN (SELECT vendor_id FROM vendors))
  8. 8When do changes get written to the log buffer?
    (Choose all that apply.)
    1. ADuring rollback operations
    2. BWhen an undo block is updated
    3. CWhen an index block is updated
    4. DWhen a table block is updated
    5. EOn COMMIT
  9. 9Which tasks can be performed using SQL functions that are built into Oracle database?
    (Choose three.)
    1. Acomparing two expressions to check whether they are equal
    2. Bchecking whether a specified character exists in a given string
    3. Cadding a number to a date for a resultant date value
    4. Dremoving trailing, leading, and embedded characters from a character string
    5. Efinding the remainder of a division
  10. 10
    After describing the EMPLOYEES table, you discover that the SALARY column has a data type of NUMBER(8,2).

    Which SALARY value(s) will not be permitted in this column?
    (Choose all that apply.)
    1. ASALARY=123456.78
    2. BSALARY=12345.678
    3. CSALARY=12.34
    4. DSALARY=12345678
    5. ESALARY=123456
    6. FSALARY=1234567.8

Information

Description
Quiz on Latest Oracle MINI, created by Brandon Gagon on 14/02/2019.
Language
English
Views
9
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?