Exam Details

  • Exam Code
    :C2090-545
  • Exam Name
    :DB2 9.7 SQL Procedure Developer
  • Certification
    :IBM Certified Solution Developer
  • Vendor
    :IBM
  • Total Questions
    :115 Q&As
  • Last Updated
    :Apr 16, 2025

IBM IBM Certified Solution Developer C2090-545 Questions & Answers

  • Question 101:

    The CREATE PROCEDURE statement shown below was executed against a database called MYDB.

    CREATE PROCEDURE myschema.proc1(INp1 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.)

    A. CREATE PROCEDURE myschema.proc1(IN p1 CHAR(4), OUT p2 INTEGER) BEGIN SET p2 = 123; END

    B. CREATE PROCEDURE myschema.proc1(IN p1 INTEGER, OUT p2 CHAR(4), OUT p3 CHAR(4)) BEGIN SET p2 = 'abc'; END

    C. CREATE PROCEDURE myschema.proc1(IN p1 CHAR(4), OUT p2 INTEGER, OUT p3 SMALLINT) BEGIN SET p2 = 123; END

    D. CREATE PROCEDUREotherschema.proc1(IN p1 CHAR(4), OUT p2 CHAR(4), OUT p3 CHAR(4)) BEGIN SET p2 = 'abc'; END

    E. CREATE PROCEDURE myschema.proc1(IN p1 NUMBER, OUT p2 NUMBER, OUT p3 NUMBER) BEGIN SET p2 = 'abc'; END

  • Question 102:

    A developer wants to code the following statements in an SQL procedure: What order must thesestatements be coded in?

    A. 1, 2, 3, 4

    B. 2, 4, 3, 1

    C. 3, 4, 2, 1

    D. 4, 3, 2, 1

  • Question 103:

    What is a reason to use SQL procedures in DB2?

    A. to use different programming languages

    B. to reduce code sharing

    C. to move business logic rules into the database

    D. to eliminate the need for testing

  • Question 104:

    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

  • Question 105:

    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

  • Question 106:

    In the stored procedure below:

    What will the value of the P_ID parameter be if the procedure is invoked and a value of 2 is specified forthe START_VALUE parameter?

    A. 1

    B. 2

    C. 3

    D. 4

  • Question 107:

    Given the following SQL:

    Which statement is incorrect?

    A. The procedure declarationrequires the DYNAMIC RESULT SETS 1 clause in order to return a result set.

    B. The cursor declaration requires the WITH RETURN TO CLIENT clause in order to return a result set.

    C. The cursor declaration requires the WITH RETURN TO CALLER clause in order toreturn a result set.

    D. The cursor declaration requires the WITH RETURN clause in order to return a result set.

  • Question 108:

    Given the following SQL:

    Which of the following statements is true?

    A. The procedure declaration requires theDYNAMIC RESULT SETS 1 clause in order to return a result set.

    B. The cursor declaration requires WITH RETURN TO CLIENT clause in order to return a result set.

    C. The cursor declaration requires WITH RETURN TO CALLER clause in order to return a result set.

    D. The cursor declaration requires WITH RETURN clause in order to return a result set.

  • Question 109:

    In the function shown below:

    Which statement can be used to invoke the function above?

    A. SELECT * FROM TABLE(fcn1('B01'))

    B. SELECT TABLE(fcn1('B01')) FROM SYSIBM.SYSDUMMY1

    C. SELECT * FROM fcn1('B01')

    D. SELECT fcn1('B01') FROM SYSIBM.SYSDUMMY1

  • Question 110:

    Which statement correctly describes characteristics of external functions?

    A. External functions cannot return tables.

    B. All cursors opened within an external function should stay open until thedatabase is quiesced.

    C. Scratchpads can be used to allocate dynamic memory required for multiple function invocations.

    D. Transactions can be terminated within external functions.

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only IBM exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your C2090-545 exam preparations and IBM certification application, do not hesitate to visit our Vcedump.com to find your solutions here.