SQLNewBieUSA
asked on
How to Correlate Last weekday of Previous Month and First Weekday of Current Month in T-SQL for SSRS ?
Hi friends,
below is my detail description.
I woulld like to show busines users Previous Months Last Weekday in Drop Down List as a Parameter.
Now, if they select Previous Months Last Weekday, then i need to pass First weekday of Current month in Store Procedure.
How can i correlate this things ?
if you need more information, let me know.
Thanks.
below is my detail description.
I woulld like to show busines users Previous Months Last Weekday in Drop Down List as a Parameter.
Now, if they select Previous Months Last Weekday, then i need to pass First weekday of Current month in Store Procedure.
How can i correlate this things ?
if you need more information, let me know.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Solved
https://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SQL-Server-2005/A_1639-Date-of-the-n-th-Day-in-a-Month.html
That is based on knowing the day of the week you are looking for, but with the CTE code I showed it should be a relatively easy task to customize it to your needs to find the first and last business day!