nerdexam
IBM

C2090-312 · Question #151

You have defined the array type PHONENUMBERS using the following DDL: CREATE TYPE PHONENUMBERS AS DECIMAL(10,0) ARRAY[50]; You also defined a variable named RECENT_CALLS based on this new array type…

The correct answer is D. SET LIST_SIZE = MAX_CARDINALITY(RECENT_CALLS). See the full explanation below for the reasoning.

Question

You have defined the array type PHONENUMBERS using the following DDL:

CREATE TYPE PHONENUMBERS AS DECIMAL(10,0) ARRAY[50]; You also defined a variable named RECENT_CALLS based on this new array type as follows:

CREATE VARIABLERECENT_CALLS PHONENUMBERS:

Which SQL statement would you use to set the variable LIST_SIZE to the maximum array size allowed for the variable RECENT_CALLS?

Options

  • ASET LIST_SIZE = MAX(RECENT_CALLS)
  • BSET LIST_SIZE = ARRAY_MAX(RECENT_CALLS)
  • CSET LIST_SIZE = ARRAY_LAST(RECENT_CALLS)
  • DSET LIST_SIZE = MAX_CARDINALITY(RECENT_CALLS)

How the community answered

(27 responses)
  • A
    7% (2)
  • B
    4% (1)
  • C
    4% (1)
  • D
    85% (23)

Community Discussion

No community discussion yet for this question.

Full C2090-312 Practice