on 2017 Oct 12 10:57 AM
It will be much appreciated if anyone can help me on How to calculate no of weeks from a date field which has value like (20160318). I require the output like (201713) as the given date falls under 13th week of that year.
Request clarification before answering.
Hi Debjit,
try this:
SELECT ISOWEEK (TO_DATE('2017-10-12', 'YYYY-MM-DD')) "isoweek" FROM DUMMY;
returns the value 2017-W41
best regards
Thorsten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.