Looking assistance in PL/SQL query.
Business Case:
Extract 2 previous business days of data from DATE column excluding weekends.
(Business Days - Monday to Friday)
End users are going to provide only 1 date to extract data.
Example:
- If Effective_date is on Monday, then need previous 2 working days data of Thursday and Friday.
- If Effective_date is on Tuesday, then need previous 2 working days data of Friday and Monday.
- If Effective_date is on Wednesday, then need previous 2 working days data of Monday and Tuesday. and so on.....