nerdexam
IBM

C2090-320 · Question #17

Which of the following SELECT statements returns a different data value than the other SQL statements?

The correct answer is D. SELECT TIMESTAMPDIFF(64, CHAR(CURRENT TIMESTAMP ?TIMESTAMP(`2016-01-01-. See the full explanation below for the reasoning.

Question

Which of the following SELECT statements returns a different data value than the other SQL statements?

Options

  • ASELECT MONTH (CURRENT TIMESTAMP) FROM SYSIBM.SYSDUMMY1;
  • BSELECT EXTRACT(MONTH FROM CURRENT TIMESTAMP) FROM SYSIBM.SYSDUMMY1;
  • CSELECT LPAD(LTRIM(SUBSTR(CHAR(CURRENT TIMESTAMP(10)),6,2),'0'),11,'') FROM
  • DSELECT TIMESTAMPDIFF(64, CHAR(CURRENT TIMESTAMP ?TIMESTAMP(`2016-01-01-

How the community answered

(52 responses)
  • A
    6% (3)
  • B
    4% (2)
  • C
    13% (7)
  • D
    77% (40)

Community Discussion

No community discussion yet for this question.

Full C2090-320 Practice