Viewing 15 posts - 56,356 through 56,370 (of 59,067 total)
But, that's more correlated subqueries... why not use a simple join for the WHERE EXISTS?
May 22, 2007 at 5:49 am
Heh... yeah, I crossed out the wrong part, huh? Shouldn't post when I'm pooped. Thanks, Serqiy.
May 22, 2007 at 12:00 am
Heh... Thanks Jacob...
Ok... apples to apples on the last bit of code... the following takes 1:09 including the PK.
--===== Create and populate a test table.
-- Column "SomeDate"...
May 21, 2007 at 11:57 pm
Go for broke... read up on WITH CUBE in BOL... that's where they teach you about the GROUPING function that works both with ROLLUP and CUBE.
May 21, 2007 at 11:13 pm
The outer join certainly does the trick but the subquery wasn't the problem... the fact that you made it a correlated subquery may have been.
select * from TableA
where ID not...
May 21, 2007 at 11:11 pm
Jacob,
Your idea is great but your code is too complex for what it does and it takes too long to run... for example, you say the code to produce a...
May 21, 2007 at 10:42 pm
I agree with Ed on both points... The fact that you are even considering some standardized method of formatting is a huge step in the right direction. And, whatever format...
May 21, 2007 at 8:15 pm
But you have the same problem commenting out the first line... Yes?
May 21, 2007 at 8:05 pm
How quickly CTE's have made folks forget all about Temp Tables, Table Variables, and Views ![]()
May 21, 2007 at 8:02 pm
If that's all you intend to use the Calendar table for, you can use the following along with a simple Holiday table for the same thing...
SELECT
(DATEDIFF(dd, @StartDate,...
May 21, 2007 at 7:50 pm
>>"scoop a few, ah, droppings, then write an editorial"
BWAAAA-HAAAAA-HAAAAA!!!! Oh, I laughed out loud! Almost sounds like a prerequisite! Way too funny! Thanks for the great laugh, Steve!
May 21, 2007 at 7:44 pm
Sometimes, ya just can't see the forest for the trees
... of course a separate table would do... if I save the SPID...
May 21, 2007 at 7:36 pm
Heh... guess he got THAT answer ![]()
May 21, 2007 at 7:32 pm
Viewing 15 posts - 56,356 through 56,370 (of 59,067 total)