Viewing 15 posts - 6,481 through 6,495 (of 8,416 total)
SELECT caseid FROM dbo.view_CaseLogDetail
EXCEPT
SELECT caseid FROM dbo.view_CaseLogDetail WHERE closedate <> ' ';
?
December 13, 2009 at 9:46 pm
I am surprised that nobody suggested reusing the existing code here. In any case T-SQL is not the place to do compute-intensive stuff with vertices and points. This...
December 13, 2009 at 9:17 pm
Just to expand on Jack's point a bit, because it is an important one:
COALESCE( expression [ ,...n ] ) returns the data type of the expression with the highest data...
December 13, 2009 at 9:07 pm
Jeff Moden (12/13/2009)
December 13, 2009 at 8:59 pm
I wouldn't expect that to work...? You need to prefix with zeroes in some circumstances. One solution is:
declare @year int,
@month...
December 13, 2009 at 8:38 pm
Also take a look at MVP Adam Machanic's excellent WhoIsActive procedure. I rarely use Activity Monitor now.
December 13, 2009 at 7:54 pm
Jeff Moden (12/13/2009)
December 13, 2009 at 7:50 pm
One more, just to labour the point. This one features no OPTION clause (same bushy plan again):
SELECT D.D
FROM #B B
INNER
MERGE
JOIN #A A
...
December 13, 2009 at 5:48 pm
Steve Jones - Editor (12/13/2009)
Paul, that's interesting. I've not seen people writing joins as groups like you have. I think those parens are affecting things.
No parentheses version:
SELECT D.D
FROM ...
December 13, 2009 at 1:57 pm
There is at least one case where the written order of the tables does matter. Ordinarily, the optimizer only considers plans where at least one input to each join...
December 13, 2009 at 1:41 am
Thanks Jeff,
Yes one should be careful. I wouldn't advocate using the method for billions of rows 😉
I had much smaller maximum values for 'Quantity' in mind - maybe thousands.
(And...
December 6, 2009 at 2:56 pm
Jeff Moden (12/5/2009)
Heh... it's not a fault... it's a feature! Makes it real easy to look good by doing a "performance improvement". 😛
Certainly one trick that has moved up...
December 6, 2009 at 2:48 pm
TheSQLGuru (12/5/2009)
Oh dude, wouldn't that be SWEET! Now watch them say "yep, it's a bug, but we aren't gonna fix it because ..." 🙁
True, true, true. But I'm...
December 5, 2009 at 7:55 am
Viewing 15 posts - 6,481 through 6,495 (of 8,416 total)