IBM DB2 9.7 SQL Procedure Developer - 000-545 Exam Practice Test
The CREATE PROCEDURE statement shown below was executed against a database called MYDB.
CREATE PROCEDURE myschema.proc1(IN p1 INTEGER, OUT p2 CHAR(4), OUT p3 SMALLINT)
BEGIN
SET p2 = 'abc';
END
Which two CREATE PROCEDURE statements, when executed against the same database, will succeed? (Choose two.)
CREATE PROCEDURE myschema.proc1(IN p1 INTEGER, OUT p2 CHAR(4), OUT p3 SMALLINT)
BEGIN
SET p2 = 'abc';
END
Which two CREATE PROCEDURE statements, when executed against the same database, will succeed? (Choose two.)
Correct Answer: D,E
Vote an answer
Which procedure demonstrates the correct use of dynamic SQL?
Correct Answer: D
Vote an answer
What is the correct order for declarations in a compound statement defined by BEGIN and END?
Correct Answer: D
Vote an answer
If the following SQL statements were executed in the order shown: What would be the values of RET_CODE1 and RET_CODE2 after executing the SIZEPRINTER procedure?


Correct Answer: C
Vote an answer
Which statement can be used to define an array of 30 names that have a maximum size of 25 characters each?
Correct Answer: D
Vote an answer
In the given text below: What will be the value of the output variable BONUS?


Correct Answer: A
Vote an answer
Click the Exhibit button.

The procedure TEST5 shown in the exhibit was invoked. How many rows will be added to the DEPT table?

The procedure TEST5 shown in the exhibit was invoked. How many rows will be added to the DEPT table?
Correct Answer: C
Vote an answer
Assuming C1 and C2 are cursor type variables, which of the following operations cannot be performed?
Correct Answer: C
Vote an answer