DB2 Practice 1 quiz assesses knowledge on DB2 database management, specifically focusing on database creation, performance optimization, and schema management. It is designed for learners aiming to enhance their DB2 skills, covering key aspects like sequence usage, table alteration, and temporal table definitions.
TRIM
DROP
DELETE
TRUNCATE
Rate this question:
SELECT empno, hiredate, salary FROM employee FOR hiredate < '1998-01-01' AND salary < 35000
SELECT empno, hiredate, salary FROM employee WHERE hiredate < '1998-01-01' AND salary < 35000
SELECT empno, hiredate, salary FROM employee WHERE hiredate < '1998-01-01' OR salary < 35000
SELECT empno, hiredate, salary FROM employee FOR hiredate < '1998-01-01' OR salary < 35000
Rate this question:
A trigger is designed to return specific types of values and contains executable code.
A trigger is designed to return specific types of values but contains no executable code.
A trigger performs actions to capture details about an activity like a join operation against multiple tables.
A trigger performs actions in response to an event like an INSERT, UPDATE or DELETE operation on a table.
Rate this question:
Control Center
Universal Connection Expert
DB2 Connection Pool Manager
IBM Data Studio
Rate this question:
4
8
16
32
Rate this question:
Alias
Index
Schema
Collection
Rate this question:
SELECT
GRANT
DROP
BIND
Rate this question:
Primary key
Partitioning key
Check constraint
Unique constraint
Rate this question:
Table size
Buffer space
Number of locks
Available real storage
Rate this question:
To automatically capture and stop rogue queries.
To provide recommendations and analysis for tuning a single query.
To provide recommendations and analysis for tuning up to 100 queries.
To recommend indexes and to guide DBAs through the process of creating new indexes.
Rate this question:
The data in the table is deleted and the table persists.
The data in the table is deleted and the table is implicitly dropped.
The temporary table is converted to a base table and the data is deleted.
The temporary table is converted to a base table and the data is persistent.
Rate this question:
Change the data type of the sequence.
Reset the sequence to its starting value.
Establish new minimum or maximum values.
Change the increment between future values.
Rate this question:
To enable uniqueness.
To ensure data clustering.
To combine data from multiple tables.
To optimize queries ran against multiple tables.
Rate this question:
SELECT job, MIN(salary), MAX(salary) FROM employee GROUP BY job;
SELECT job, MIN(salary), MAX(salary) FROM employee ORDER BY job;
SELECT job, MIN(salary), MAX(salary) FROM employee GROUP BY job, MIN(salary), MAX(salary);
SELECT JOB, MIN(salary), MAX(salary) FROM employee ORDER BY job, MIN(salary), MAX(salary);
Rate this question:
Table
Schema
Package
Database
Rate this question:
A transaction-start-id column must be defined for the table.
A BUSINESS_TIME period must be specified in a CREATE or ALTER of the table.
A history table must be defined and associated with the base table.
A unique index must be created that prevents overlapping of the BUSINESS_TIME period of the table.
Rate this question:
In the table definition.
In the system catalog.
In the schema that the index resides in.
In the metadata of the table the index was created for.
Rate this question:
ROLLBACK TO SAVEPOINT
COMMIT TO SAVEPOINT
ROLLBACK
COMMIT
Rate this question:
Load operations
Backup/copy table spaces
Create and drop databases
Monitor database performance
Rate this question:
CALL
USAGE
EXECUTE
REFERENCES
Rate this question:
CLI
JDBC
XML
RUBY
Rate this question:
Read Stability (RS)
Cursor Stability (CS)
Repeatable Read (RR)
Uncommitted Read (UR)
Rate this question:
Locked
Waiting
Pending
Unconnected
Rate this question:
DBADM
DBCTRL
SECADM
DBMAINT
Rate this question:
Bitemporal
Time-period
System-period
Application-period
Rate this question:
PureScale
Data partitioning feature
Workload manager
Self-tuning memory manager
Rate this question:
Materialized Query Table
Sequence Object
SQL Procedure
Trigger
Rate this question:
Reference
Address
Pointer
Locator
Rate this question:
The current transaction is terminated and a new transaction boundary is started.
Open cursors defined WITH HOLD are closed, but their data is retained.
Data stored in global temporary tables is automatically deleted.
All locks held on the database are automatically released.
Rate this question:
Share (S)
Update (U)
Exclusive (X)
Intent Exclusive (IX)
Rate this question:
Read Stability (RS)
Repeatable Read (RR)
Uncommitted Read (UR)
Cursor Stability (CS)
Rate this question:
SELECT employees.name, sales.revenue FROM employees INNER JOIN sales ON employees.id = sales.emp_id
SELECT employees.name, sales.revenue FROM employees INNER JOIN sales ON sales.emp_id = employees.id
SELECT employees.name, sales.revenue FROM sales LEFT OUTER JOIN employees ON employees.id = sales.emp_id
SELECT employees.name, sales.revenue FROM sales RIGHT OUTER JOIN employees ON employees.id = sales.emp_id
Rate this question:
Unique constraint
Primary key constraint
Informational constraint
Column default constraint
Rate this question:
In an XML index.
In line with the rest of the data for the table.
In an XML storage object that is separate from the table.
In line with the rest of the data for the table, for XML columns less than 32KB.
Rate this question:
The last 5 rows in the table will be deleted.
The first 5 rows in the table will be deleted.
The statement will fail because a subquery cannot be used with a DELETE statement.
The statement will fail because a table name was not specified with the DELETE statement.
Rate this question:
Inline
Binary
Internal
Partitioned
Rate this question:
Oracle connect
Trusted context
Oracle federation
Distributed request
Rate this question:
LOCK TABLE tab1 IN READ MODE
LOCK TABLE tab1 IN SHARE MODE
LOCK TABLE tab1 IN EXCLUSIVE MODE
LOCK TABLE tab1 IN READ-ONLY MODE
Rate this question:
SELECT lastname, firstnme, salary, job FROM employee ORDER BY 3 FETCH FIRST 5 ROWS ONLY
SELECT lastname, firstnme, salary, job FROM employee ORDER BY 3 DESC FETCH FIRST 5 ROWS ONLY
SELECT lastname, firstnme, salary, job FROM employee ORDER BY 3 FETCH FIRST 5 ROWS
SELECT lastname, firstnme, salary, job FROM employee ORDER BY 3 DESC FETCH FIRST 5 ROWS
Rate this question:
When a transaction intends to read or change data.
When a transaction intends to change but not read data.
When a transaction intends to read but not change data.
When a transaction intends to change the system catalog.
Rate this question:
Uncommitted read (UR)
Read stability (RS)
Cursor stability (CS)
Repeatable read (RR)
Rate this question:
CALL conv_temp(climate_info.avg_temp);
SELECT conv_temp(avg_temp) FROM climate_info;
CALL convert_ftoc(climate_info.avg_temp);
SELECT convert_ftoc(avg_temp) FROM climate_info;
Rate this question:
DBCTRL authority
SQLADM authority
DATAACCESS authority
ACCESSCTRL authority
Rate this question:
The SYSIBM schema.
The SYSFUN schema.
A schema with the name of the UDF.
A schema with the userid of the UDF definer.
Rate this question:
XMLTABLE
XMLPARSE
XMLEXISTS
XMLATTRIBUTES
Rate this question:
The INSERT statement is used to insert rows into a table, view, or table function.
Inserted values must satisfy the conditions of any check constraints defined on the table.
If an INSERT statement omits any column from the inserted row that is defined as NULL or NOT NULL WITH DEFAULT, the statement will fail.
If the underlying table of a view being referenced by an INSERT statement has one or more unique indexes, each row inserted does not have to conform to the constraints imposed by those indexes.
Rate this question:
It must not contain more than one column.
It cannot be used in a referential constraint.
It must be defined with the UNIQUE attribute.
It must be defined as UNIQUE WHERE NOT NULL
Rate this question:
Lock escalation
Lock conversion/promotion
Lock switch/exchange
Lock substitution
Rate this question:
Quiz Review Timeline (Updated): Mar 21, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.