Hi all,
This is my first post so be gentle. I have tried searching for what I am looking for but to no avail (if the code is floating around somewhere on here I apologise but I did have a good look prior to posting). Basically what I want to do is something along the lines of the following.
I have a select query where I want to return any row that has a value (field contains dates in the format yy-mm-dd) less than or equal to the current day + 2 business days.
i.e.
SELECT Field1, Field 2 etc
FROM Pending_Trades
WHERE several other conditions are met for which I already have working code
AND Value_date <= (today + 2 business days)
Crucially this has to be business days, not just calendar days.
Any help would be appreciated.
Regards,
Ryan.
This is my first post so be gentle. I have tried searching for what I am looking for but to no avail (if the code is floating around somewhere on here I apologise but I did have a good look prior to posting). Basically what I want to do is something along the lines of the following.
I have a select query where I want to return any row that has a value (field contains dates in the format yy-mm-dd) less than or equal to the current day + 2 business days.
i.e.
SELECT Field1, Field 2 etc
FROM Pending_Trades
WHERE several other conditions are met for which I already have working code
AND Value_date <= (today + 2 business days)
Crucially this has to be business days, not just calendar days.
Any help would be appreciated.
Regards,
Ryan.