Viewing 14 posts - 1 through 14 (of 14 total)
If you work out what the last Monday was, and what the first Monday in August was, you can do a datediff in weeks to get the week number...
April 2, 2019 at 7:58 am
Thank you all for the ideas and the work! There is brilliance here methinks LOL.
I can just about work out how Dixie's Tally works, and Scott's just breaks my brain...
April 2, 2019 at 7:56 am
Aye, I started with getting the datepart week for 01-Aug and subtracting or adding as required but the leap years got me, and of course the standard week number also...
March 29, 2019 at 9:08 am
As a best estimate, that was a good effort! 😀
I altered the query to bring back a little more info to check if the answer was as hoped...
SELECT a.ID
, a.EntityType
,...
March 21, 2016 at 10:58 am
Thank you both for your help - I'll try and setup a test with real data 🙂
August 6, 2015 at 2:06 am
Just returned to work and will try both of the suggestions - thanks for taking the time to offer solutions guys, it is much appreciated.
December 18, 2014 at 8:00 am
That did it, thanks Luis
September 24, 2014 at 7:23 am
Getting closer...
I'm able to output...
xg-14-A2-4xZS, ZS, ZS, ZS
xg-14-A2-6xZS, ZS, BP, BP
xp-14-A2-1bxLW, LW, LW, LW
xp-14-A2-1xLW, LW, LW, LW
xt-14-A2-2xSBS, SBS, CW, CW
xt-14-A2-3xSBS, SBS, CW, CW
but now I need to remove duplicates so...
August 26, 2014 at 5:49 am
Luis Cazares (8/5/2014)
Maybe you culd read Part 2 of the Cross Tabs and Pivots series. 😉
I have read part two but couldn't see how it would fit this situation, but...
August 5, 2014 at 9:03 am
Hi guys
Have this procedure running now, thanks to your help, but I do still have one problem with it:
If I set the waitfordelay to anything less than 15 seconds the...
April 29, 2014 at 6:34 am
Jason Selburg (4/8/2014)
ldanks (4/8/2014)
Jason Selburg (5/16/2011)
This is the most recent code I have. It may need some tweaking for 2008, I've not tested it on '08.http://www.sqlservercentral.com/articles/Development/2824/[/url]
Hi Jason
I'm trying out your...
April 8, 2014 at 3:30 pm
Jason Selburg (5/16/2011)
This is the most recent code I have. It may need some tweaking for 2008, I've not tested it on '08.http://www.sqlservercentral.com/articles/Development/2824/[/url]
Hi Jason
I'm trying out your code using the...
April 8, 2014 at 9:05 am
Simon E Doubt (4/4/2014)
I developed a solution using that technique to render PDF versions of a specific report once...
April 7, 2014 at 10:44 am
I did read through this..
http://www.sqlservercentral.com/scripts/Miscellaneous/31733/
but I can't work out how I would loop through the list of people requiring emails and parse the parameters and emails from...
April 4, 2014 at 2:52 pm
Viewing 14 posts - 1 through 14 (of 14 total)