Exam2pass
0 items Sign In or Register
  • Home
  • IT Exams
  • Guarantee
  • FAQs
  • Reviews
  • Contact Us
  • Demo
Exam2pass > IBM > IBM Certified Solution Developer > C2090-545 > C2090-545 Online Practice Questions and Answers

C2090-545 Online Practice Questions and Answers

Questions 4

Which procedure demonstrates the correct use of dynamic SQL?

A. CREATE PROCEDURE update_count1 (IN new_count INTEGER, IN item_code INTEGER) BEGIN DECLARE v_dynSQL VARCHAR(200); SET v_dynSQL = 'UPDATE stock SET quantity_on_hand=? WHERE item_number=?'; PREPARE v_stmt1 FROM v_dynSQL; EXECUTE v_stmt1 USING new_count, item_code; END

B. CREATE PROCEDURE update_count2 (IN tab_name VARCHAR(128), IN new_count INTEGER, IN item_code INTEGER) BEGIN DECLARE v_dynSQL VARCHAR(200); SET v_dynSQL = 'UPDATE ? SET quantity_on_hand=? WHERE item_number=?'; PREPARE v_stmt1 FROM v_dynSQL; EXECUTE v_stmt1 USING tab_name, new_count, item_code; END

C. CREATE PROCEDURE update_count4 (IN tab_name VARCHAR(128), IN col_name1 VARCHAR(128), IN col_name2 VARCHAR(128), IN new_count INTEGER, IN item_code INTEGER) BEGIN DECLARE v_dynSQL VARCHAR(200); SET v_dynSQL = 'UPDATE ? SET ?=? WHERE ?=?'; PREPARE v_stmt1 FROM v_dynSQL; EXECUTE v_stmt1 USING tab_name, col_name1,new_count, col_name2, item_code; END

D. CREATE PROCEDURE update_count5 (IN new_count INTEGER, IN item_code INTEGER) BEGIN DECLARE v_dynSQL VARCHAR(200); DECLARE v_col_name VARCHAR(128); SET v_col_name = 'item_number'; SET v_dynSQL = 'UPDATE stock SETquantity_on_hand=? WHERE ?=?'; PREPARE v_stmt1 FROM v_dynSQL; EXECUTE v_stmt1 USING new_count, v_col_name, item_code; END

Buy Now

Correct Answer: A

Questions 5

Which SQL procedure declaration is coded correctly?

A. CREATE PROCEDURE myproc(IN salary DOUBLE, OUT commission DOUBLE) BEGIN DECLARE EXIT HANDLER FOR SQLEXCEPTION SETcommission = 0; DECLARE my_cur CURSOR FOR SELECT * FROM employee; DECLARE a DOUBLE; SET a = .06 * salary; SET commission = a; END

B. CREATE PROCEDURE myproc(IN salary DOUBLE, OUT commission DOUBLE) BEGIN DECLARE EXIT HANDLER FOR SQLEXCEPTION SET commission= 0; DECLARE a DOUBLE; DECLARE my_cur CURSOR FOR SELECT * FROM employee; SET a = .06 * salary; SET commission = a; END

C. CREATE PROCEDURE myproc(IN salary DOUBLE, OUT commission DOUBLE) BEGIN DECLARE a DOUBLE; DECLARE EXIT HANDLER FOR SQLEXCEPTION SETcommission = 0; DECLARE my_cur CURSOR FOR SELECT * FROM employee; SET a = .06 * salary; SET commission = a; END

D. CREATE PROCEDURE myproc(IN salary DOUBLE, OUT commission DOUBLE) BEGIN DECLARE a DOUBLE; DECLARE my_cur CURSOR FOR SELECT * FROM employee; DECLARE EXIT HANDLER FOR SQLEXCEPTION SET commission = 0; SET a = .06 * salary; SET commission = a; END

Buy Now

Correct Answer: D

Questions 6

In which type of table space must global temporary tables be created?

A. REGULAR

B. LONG

C. SYSTEM TEMPORARY

D. USER TEMPORARY

Buy Now

Correct Answer: D

Questions 7

Which of the following statements is true for declared global temporary tables?

A. Declared global temporary table descriptions are stored in the system catalog

B. When a session terminates, all declared global temporary tables created in the session are dropped.

C. Declared global temporary tables are persistent and can be shared with multiple sessions.

D. Declared temporary tables support LONG VARCHAR columns.

Buy Now

Correct Answer: B

Questions 8

Click the Exhibit button.

Which statement is true about the CASE statement shown in the exhibit?

A. An employee with a rating of 1 receives a 10% salary increase.

B. An employee with a rating of 3 receives no salary increase.

C. An employee with a rating of 2 receives a 3%salary increase.

D. All employees will receive at least a 5% salary increase.

Buy Now

Correct Answer: A

Questions 9

Which object is used to return a result set from an SQLprocedure?

A. Temporary table

B. Array

C. Cursor

D. Scratchpad

Buy Now

Correct Answer: C

Questions 10

Which two statements are true? (Choose two.)

A. SQL procedures can contain static and/or dynamic SQL statements.

B. Static or dynamic SQL execution is not associated with a package.

C. The SQL procedure isalways associated with a package that contains access paths of SQL statements in the procedure.

D. It is necessary for an end-user to have object level privileges if that user has execute privileges on an associated package and the SQL procedure.

E. SQL procedures can have COMMIT or ROLLBACK within atomic compound statements.

Buy Now

Correct Answer: AC

Questions 11

Which tool can be used to get quick static SQL Explain data from packages?

A. db2expln

B. db2exfmt

C. Control Center

D. DB2 command center

Buy Now

Correct Answer: A

Questions 12

Which code fragment illustrates the proper way to perform error checking in SQL stored procedures?

A. ... IF EXCEPTION < 0 ELSE THEN; NULL; ENDIF; ...

B. ... BEGIN EXCEPTION < 0 ELSE; NULL; END; ...

C. ... IF SQLCODE < 0 THEN RETURN -6786; END IF; ...

D. ... BEGIN IF SQLCODE <0 THEN RETURN -6786 END;

Buy Now

Correct Answer: C

Questions 13

Which two statements describe a CASE statement? (Choose two.)

A. CASE statements are used to enter into some logic based on a literal value.

B. CASE statements are used to enter into some logicbased on the value of an expression.

C. CASE statements are used to return control to the beginning of an expression.

D. CASE statements are used to enter into some condition and loop until the condition is met.

E. CASE statements are used to iterate intosome logic based on a literal value.

Buy Now

Correct Answer: AB

Exam Code: C2090-545
Exam Name: DB2 9.7 SQL Procedure Developer
Last Update: Jun 12, 2025
Questions: 115

PDF (Q&A)

$45.99
ADD TO CART

VCE

$49.99
ADD TO CART

PDF + VCE

$59.99
ADD TO CART

Exam2Pass----The Most Reliable Exam Preparation Assistance

There are tens of thousands of certification exam dumps provided on the internet. And how to choose the most reliable one among them is the first problem one certification candidate should face. Exam2Pass provide a shot cut to pass the exam and get the certification. If you need help on any questions or any Exam2Pass exam PDF and VCE simulators, customer support team is ready to help at any time when required.

Home | Guarantee & Policy |  Privacy & Policy |  Terms & Conditions |  How to buy |  FAQs |  About Us |  Contact Us |  Demo |  Reviews

2025 Copyright @ exam2pass.com All trademarks are the property of their respective vendors. We are not associated with any of them.