Thanks nikhilparchure,
I created it a little differently and needed to output the four Thursdays in a month/day format. This is mainly what I've come up with.
I had to write the IF (@PubDay <= 5) formula to be sure it selected the next Thurdays and not the closest Thursday.
PRINT "CREATE...
I am trying to figure out how to make a stored procedure that will output the date of the next four Thursdays. If it is any day of the week I need to find the first Thursday then the next three consecutive Thursdays.
I'm thinking that after finding the first Thursday I could do something like...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.