DB2 and Oracle Database Fundamentals

Test your knowledge of DB2 product editions, licensing, and Oracle database concepts including SQL, triggers, tablespaces, and performance optimization

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which statment about trigger is TRUE ?

  1. we can use Application Trigger to fire when a DELETE statement occurs
  2. we can use database Trigger to fire when a INSERT statement occurs
  3. we can use System event Trigger to fire when a DELETE statement occurs
  4. we can use INSTEAD OF trigger to fire when a INSERT statement occurs
Question 2 Multiple Choice (Single Answer)

Which is valid in creating DML triggers ?

  1. DURING
  2. INSTEAD
  3. ON SHUTDOWN
  4. BEFORE
Question 3 Multiple Choice (Single Answer)

CALL statement inside the trigger body enable to call ?

  1. Package
  2. Stored function
  3. Stored procedure
  4. Another DB trigger
Question 4 Multiple Choice (Single Answer)

which command do u used to remove trigger(business_hour) in iSQL environment ?

  1. DELETE TRIGGER business_hour
  2. DROP TRIGGER business_hour
  3. REMOVE TRIGGER business_hour
  4. ALTER TRIGGER business_hour remove
Question 5 Multiple Choice (Single Answer)

The OLD and NEW Qualifier is used in which type of trigger?

  1. Row level DML trigger
  2. Statement level DML trigger
  3. System trigger
  4. Application Trigger
Question 6 Multiple Choice (Single Answer)

The command to disable all the triggers on the EMP table

  1. ALTER TRIGGERS ON TABLE EMP DISABLE
  2. ALTER EMP DISABLE ALL TRIGGERS
  3. NOT POSSIBLE TO DISABLE TRIGGERS
  4. ALTER TABLE EMP DISABLE ALL TRIGGERS
Question 7 Multiple Choice (Single Answer)

How many columns are presented after executing this query: SELECT address1||','||address2||','||address2 "Adress" FROM employee;

  1. 1
  2. 2
  3. 3
  4. 4
Question 8 Multiple Choice (Single Answer)

Which Oracle access method is the fastest way for Oracle to retrieve a single row?

  1. Full table scan
  2. Table access by ROWID
  3. Access via unique index
  4. Primary key access
Question 9 Multiple Choice (Single Answer)

Which of the following can be a valid column name?

  1. Column
  2. 1966_Invoices
  3. Catch_#22
  4. #Invoices
Question 10 Multiple Choice (Single Answer)

Which command will delete all data from a table and will not write to the rollback segment?

  1. drop
  2. truncate
  3. delete
  4. cascade
Question 11 Multiple Choice (Single Answer)

Which character function can be used to return a specified portion of a character string?

  1. instr
  2. substr
  3. substring
  4. pos
Question 12 Multiple Choice (Single Answer)

The primary key on table EMP is the EMPNO column. Which of the following statements will not use the associated index on EMPNO?

  1. select * from EMP where nvl(EMPNO, '00000') = '59384';
  2. select 1 from EMP where EMPNO = '59834';
  3. select EMPNO, LASTNAME from EMP where EMPNO = '59384'
  4. select * from EMP where EMPNO = '59384';
Question 13 Multiple Choice (Single Answer)

When a user creates an object without a TABLESPACE clause, where will Oracle store the segment

  1. System tablespace
  2. Users tablespace
  3. Default tablespace for the user
  4. Oracle will give an error
Question 14 Multiple Choice (Single Answer)

Which character is used to continue a statement in SQL*Plus?

  1. *
  2. -
  3. /
  4. @
Question 15 Multiple Choice (Single Answer)

Assuming today is Monday, 10 July 2000, what is returned by this statement: SELECT to_char(NEXT_DAY(sysdate, 'MONDAY'), 'DD-MON-RR') FROM dual;

  1. 03-JUL-00
  2. 10-JUL-00
  3. 11-JUL-00
  4. 17-JUL-00
Question 16 Multiple Choice (Single Answer)

To produce a meaningful result set without any cartesian products, what is the minimum number of conditions that should appear in the WHERE clause of a four-table join?

  1. 8
  2. 2
  3. 3
  4. 4
Question 17 Multiple Choice (Single Answer)

Which of the following is the lowest cost DB2 product that can be legally installed on a Windows server that has 2 CPUs?

  1. DB2 Everyplace
  2. DB2 Express Edition
  3. DB2 Workgroup Server Edition
  4. DB2Enterprise Server Edition
Question 18 Multiple Choice (Single Answer)

Which of the following products is allowed to access other DB2 servers, but cannot accept requests from other remote clients?

  1. DB2 Personal Edition
  2. DB2 Workgroup Server Edition
  3. DB2Enterprise Server Edition
  4. DB2 Data Warehouse Edition
Question 19 Multiple Choice (Single Answer)

A client application on z/OS must access a DB2 database on a Solaris Server. At a Minimum, which of the following products must be installed on the Solaris Workstation?

  1. DB2 Connect Enterprise Edition
  2. DB2 Workgroup Server Edition
  3. DB2 Workgroup Server Edition and DB2 Connect Enterprise Edition
  4. DB2Enterprise Server Edition and DB2 Connect Enterprise Edition
Question 20 Multiple Choice (Single Answer)

Which of the following is the lowest cost DB2 product that can be legally installed on an HP-UX server?

  1. DB2 Express-C
  2. DB2 Express
  3. DB2 Personal Edition
  4. DB2Enterprise Server Edition