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)- A6% (3)
- B4% (2)
- C13% (7)
- D77% (40)
Community Discussion
No community discussion yet for this question.