Viewing 15 posts - 1 through 15 (of 19 total)
Thanks for the help Phil, it was much appreciated.
April 3, 2025 at 3:36 pm
I've resolved by virtualising the union results in the cte and adding another select - this may slow the whole thing down a touch but in truth the query will...
April 3, 2025 at 3:18 pm
Hi Phil - this is adding an ID of zero into the 'unioned' result - I need the second part of this union to effectively inherit the ID from the...
April 3, 2025 at 3:08 pm
Hi Phil, that has worked a treat .. I used the same convention but used a CTE to create 'virtual tables' since Tables A and B did not exist in...
April 3, 2025 at 2:54 pm
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/%5B/url%5D
Hi Jason
I'm trying out your...
April 8, 2014 at 3:30 pm
Viewing 15 posts - 1 through 15 (of 19 total)