最新的IBM DB2 9 Family Fundamentals - 000-730免費考試真題
Given the following two tables:
TAB1
COL_1 COL_2
A 10 B 12 C 14
TAB2
COL_A COL_B
A 21 C 23 D 25
Assuming the following results are desired:
COL_1 COL_2 COL_A COL_B A 10 A 21 B 12 - C 14 C 23 - - D 25
Which of the following joins will produce the desired results?
TAB1
COL_1 COL_2
A 10 B 12 C 14
TAB2
COL_A COL_B
A 21 C 23 D 25
Assuming the following results are desired:
COL_1 COL_2 COL_A COL_B A 10 A 21 B 12 - C 14 C 23 - - D 25
Which of the following joins will produce the desired results?
正確答案: D
Which of the following SQL statements can be used to create a DB2 object to store numerical data as EURO data?
正確答案: D
Which of the following tools can make recommendations for indexes and/or MQTs to improve the performance of DB2 applications?
正確答案: B
What does the following statement do? GRANT REFERENCES (col1, col2) ON TABLE table1 TO user1 WITH GRANT OPTION
正確答案: C
Given the following table definitions:
TABLE1
ID INT NAME CHAR(30) PERSON INT CITIES INT TABLE2
ID INT
LASTNAME CHAR(30)
Which of the following statements will remove all rows in table TABLE1 that have matching
PERSONs in table TABLE2?
TABLE1
ID INT NAME CHAR(30) PERSON INT CITIES INT TABLE2
ID INT
LASTNAME CHAR(30)
Which of the following statements will remove all rows in table TABLE1 that have matching
PERSONs in table TABLE2?
正確答案: C
Which of the following DB2 objects are publicly referenced names that require no special authority or privilege to use them?
正確答案: D
Which of the following privileges permits a user to update the comment on a sequence?
正確答案: C
Within the application MY_APP the following PREVIOUS VALUE expression references the sequence MY_SEQ: PREVIOUS VALUE FOR my_seq After which of the following events will the most recently generated value of MY_SEQ persist so that it can be returned to the active MY_APP application?
正確答案: D
Given the following table definitions:
EMPLOYEES
EMPID INTEGER
NAME CHAR(20)
DEPTID CHAR(3)
SALARY DECIMAL(10,2)
COMMISSION DECIMAL(8,2)
DEPARTMENTS
DEPTNO INTEGER DEPTNAME CHAR(20)
Which of the following statements will produce a result data set that satisfies all of these conditions:
> Displays the total number of employees in each department >> Displays the corresponding department name for each department ID >> Sorted by department employee count, from greatest to least
EMPLOYEES
EMPID INTEGER
NAME CHAR(20)
DEPTID CHAR(3)
SALARY DECIMAL(10,2)
COMMISSION DECIMAL(8,2)
DEPARTMENTS
DEPTNO INTEGER DEPTNAME CHAR(20)
Which of the following statements will produce a result data set that satisfies all of these conditions:
> Displays the total number of employees in each department >> Displays the corresponding department name for each department ID >> Sorted by department employee count, from greatest to least
正確答案: D
Given the following table:
TAB1
COL1 COL2
A 10 B 20 C 30
D 40
E 50
And the following SQL statements:
DECLARE c1 CURSOR WITH HOLD FOR
SELECT * FROM tab1 ORDER BY col_1;
OPEN c1;
FETCH c1;
FETCH c1;
FETCH c1;
COMMIT;
FETCH c1;
CLOSE c1;
FETCH c1;
Which of the following is the last value obtained for COL_2?
TAB1
COL1 COL2
A 10 B 20 C 30
D 40
E 50
And the following SQL statements:
DECLARE c1 CURSOR WITH HOLD FOR
SELECT * FROM tab1 ORDER BY col_1;
OPEN c1;
FETCH c1;
FETCH c1;
FETCH c1;
COMMIT;
FETCH c1;
CLOSE c1;
FETCH c1;
Which of the following is the last value obtained for COL_2?
正確答案: C
Two applications have created a deadlock cycle in the locking subsystem. If lock timeout is set to 30 and both applications were started at the same time, what action will the deadlock detector take when it "wakes up" and discovers the deadlock?
正確答案: C