Assume MyTable contains a MyDate column of Oracle DATE type. Write three SELECT statements:
- Return MyDate and a second column that adds three weeks to it.
- Return MyDate and the number of DAY boundaries from the current database date/time (SYSDATE) to MyDate. A later MyDate should give a positive count.
- Return MyDate and its numeric month (1 through 12).
Give each calculated column a meaningful alias. Use Oracle 26ai DATEADD, DATEDIFF, and EXTRACT. These DATEADD and DATEDIFF examples are version-specific and should not be assumed to work on older Oracle installations.
For a fixed check, replace SYSDATE with DATE '2026-10-01' and use MyDate = DATE '2026-10-08'. Predict all three calculated values. Also explain why a day-boundary count is different from complete 24-hour periods.