The following SQL statement, where no calendar specified indicates the session calendar, which in this example is TERADATA::
SELECT TD_WEEK_END(timestamp'2012-05-08 10:00:00');
Returns:
2012-05-12 23:59:59
The following SQL statement, where no calendar specified indicates the session calendar, which in this example is TERADATA::
SELECT TD_WEEK_END(timestamp'2012-05-08 10:00:00');
Returns:
2012-05-12 23:59:59