4programming
Programmer
Hello experts,
I need to know how to exclude weekends in days from this case statement..... I need it to work with the case statement as I don;t want to adjust my whole code. For example
ie. if Date 1 = May 2, 2008 and date 2 = May 5, 2008
Looking at this example the day difference = 3 days. Now my issue is how do I remove the weekends from this count so that the count in this example = 1 and not 3........?
Thanks.
I need to know how to exclude weekends in days from this case statement..... I need it to work with the case statement as I don;t want to adjust my whole code. For example
ie. if Date 1 = May 2, 2008 and date 2 = May 5, 2008
Looking at this example the day difference = 3 days. Now my issue is how do I remove the weekends from this count so that the count in this example = 1 and not 3........?
Code:
(CASE WHEN (from_epoch(Date) - from_epoch(Date2)) >=2
OR (From_Epoch(Date1) IS NULL and From_Epoch(Date) > sysdate + 2) THEN
'No' ELSE 'Yes' END)TargetNotMet
Thanks.