Tuesday 24 December 2019

How to get first and last day of week in Oracle? Week start and end date for a given date. Get the week start date and week end date from week number in SQL ORACLE

-- Week start and end date for a given date
-- How to get first and last day of week in Oracle?
-- Get the week start date and week end date from week number in SQL ORACLE


SELECT TRUNC(SYSDATE, 'IW') -3  WEEK_START_DATE,   -- I WANT MY WEEK START DATE WILL FRIDAY
       TRUNC(SYSDATE, 'IW') +3  WEEK_END_DATE      -- I WANT MY WEEK END DATE WILL THURSDAY
FROM DUAL;

No comments:

Post a Comment

How to change Employee Number Generation from Manual to Automatic in Oracle HRMS (When attempting to apply for a job in iRecruitment)

When attempting to apply for a job in iRecruitment, the following error occurs: ERROR: You must enter an Application Number. Solution: How t...