DB2 and Oracle Database Fundamentals
Test your knowledge of DB2 product editions, licensing, and Oracle database concepts including SQL, triggers, tablespaces, and performance optimization
Questions
Which statment about trigger is TRUE ?
- we can use Application Trigger to fire when a DELETE statement occurs
- we can use database Trigger to fire when a INSERT statement occurs
- we can use System event Trigger to fire when a DELETE statement occurs
- we can use INSTEAD OF trigger to fire when a INSERT statement occurs
Which is valid in creating DML triggers ?
- DURING
- INSTEAD
- ON SHUTDOWN
- BEFORE
CALL statement inside the trigger body enable to call ?
- Package
- Stored function
- Stored procedure
- Another DB trigger
which command do u used to remove trigger(business_hour) in iSQL environment ?
- DELETE TRIGGER business_hour
- DROP TRIGGER business_hour
- REMOVE TRIGGER business_hour
- ALTER TRIGGER business_hour remove
The OLD and NEW Qualifier is used in which type of trigger?
- Row level DML trigger
- Statement level DML trigger
- System trigger
- Application Trigger
The command to disable all the triggers on the EMP table
- ALTER TRIGGERS ON TABLE EMP DISABLE
- ALTER EMP DISABLE ALL TRIGGERS
- NOT POSSIBLE TO DISABLE TRIGGERS
- ALTER TABLE EMP DISABLE ALL TRIGGERS
How many columns are presented after executing this query: SELECT address1||','||address2||','||address2 "Adress" FROM employee;
- 1
- 2
- 3
- 4
Which Oracle access method is the fastest way for Oracle to retrieve a single row?
- Full table scan
- Table access by ROWID
- Access via unique index
- Primary key access
Which of the following can be a valid column name?
- Column
- 1966_Invoices
- Catch_#22
- #Invoices
Which command will delete all data from a table and will not write to the rollback segment?
- drop
- truncate
- delete
- cascade
Which character function can be used to return a specified portion of a character string?
- instr
- substr
- substring
- pos
The primary key on table EMP is the EMPNO column. Which of the following statements will not use the associated index on EMPNO?
- select * from EMP where nvl(EMPNO, '00000') = '59384';
- select 1 from EMP where EMPNO = '59834';
- select EMPNO, LASTNAME from EMP where EMPNO = '59384'
- select * from EMP where EMPNO = '59384';
When a user creates an object without a TABLESPACE clause, where will Oracle store the segment
- System tablespace
- Users tablespace
- Default tablespace for the user
- Oracle will give an error
Which character is used to continue a statement in SQL*Plus?
- *
- -
- /
- @
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;
- 03-JUL-00
- 10-JUL-00
- 11-JUL-00
- 17-JUL-00
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?
- 8
- 2
- 3
- 4
Which of the following is the lowest cost DB2 product that can be legally installed on a Windows server that has 2 CPUs?
- DB2 Everyplace
- DB2 Express Edition
- DB2 Workgroup Server Edition
- DB2Enterprise Server Edition
Which of the following products is allowed to access other DB2 servers, but cannot accept requests from other remote clients?
- DB2 Personal Edition
- DB2 Workgroup Server Edition
- DB2Enterprise Server Edition
- DB2 Data Warehouse Edition
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?
- DB2 Connect Enterprise Edition
- DB2 Workgroup Server Edition
- DB2 Workgroup Server Edition and DB2 Connect Enterprise Edition
- DB2Enterprise Server Edition and DB2 Connect Enterprise Edition
Which of the following is the lowest cost DB2 product that can be legally installed on an HP-UX server?
- DB2 Express-C
- DB2 Express
- DB2 Personal Edition
- DB2Enterprise Server Edition