The following SQL statement:
SELECT TD_SUNDAY(timestamp'2012-05-08 10:00:00');
returns 2012-05-06 00:00:00.
where no calendar specified indicates the session calendar, which in this case is TERADATA.
The following SQL statement:
SELECT TD_SUNDAY(timestamp'2012-05-08 10:00:00');
returns 2012-05-06 00:00:00.
where no calendar specified indicates the session calendar, which in this case is TERADATA.