SQL Functions   «Prev 

Oracle 26ai Date Functions - Quiz

Five Oracle 26ai questions, one point each. Select one answer per question. Missing or invalid answers receive no point. The quiz checks your selected answers; it does not execute SQL.
1. In Oracle 26ai, assume the table and DATE columns exist. What is wrong with this statement?
SELECT DATEDIFF(days, FirstDate, SecondDate), FirstDate, SecondDate
FROM MyTable;

Select one answer.
  A.
  B.
  C.
  D.

2. Which Oracle 26ai query counts calendar DAY boundaries from January 1, 1998 to the current database date/time?
Select one answer.
  A.
  B.
  C.
  D.

3. What datetime value does this Oracle 26ai statement return (regardless of display format)?
SELECT DATEADD(MONTH, -1, TIMESTAMP '2023-04-30 11:24:54 +01:00')
FROM DUAL;

Select one answer.
  A.
  B.
  C.
  D.

4. Which expression returns the current database date and time as an Oracle DATE value, without function parentheses?
Select one answer.
  A.
  B.
  C.
  D.

5. What does this Oracle 26ai expression return?
DATEDIFF(DAY, TIMESTAMP '2026-10-01 23:59:00',
              TIMESTAMP '2026-10-02 00:01:00')

Select one answer.
  A.
  B.
  C.
  D.