Free NR0-016 Exam Braindumps (page: 13)

Page 12 of 28

What are four reasons to use a macro? (Choose four.)

  1. To limit access to data
  2. To enforce locking choices
  3. To reduce parsing overhead
  4. To ensure consistency of SQL code
  5. To create several secondary indexes on a table
  6. To pass a table name dynamically as a parameter

Answer(s): A,B,C,D



Assume the following stored procedure partial definition:
CREATE PROCEDURE test_set (IN a INT, INOUT b INT, OUT c INT) Which three statements would be valid constructs within the stored procedure? (Choose three.)

  1. SET c = b + a
  2. SET b = c + 1
  3. SET b = b + 1
  4. SET c = b + 1

Answer(s): A,C,D



Assume the following stored procedure is defined and executed as follows: CREATE PROCEDURE test_set (IN V1 INT, INOUT V2 INT, OUT V3 INT) BEGIN
SET V3 = V1 + 2; SET V2 = V2 * V2
END;
CALL call_test1 (4, 5, V3);
What are the output values for V2 and V3?

  1. 25, 6
  2. 16, 5
  3. 16, 7
  4. 25, 7

Answer(s): A



What are three characteristics of derived tables? (Choose three.)

  1. They are local to the query.
  2. They may be defined with DDL.
  3. There is no Data Dictionary involvement.
  4. They are materialized in temporary space.
  5. Spool rows are discarded when the query finishes.

Answer(s): A,C,E






Post your Comments and Discuss TeraData NR0-016 exam with other Community members:

NR0-016 Discussions & Posts