Viewing 15 posts - 57,061 through 57,075 (of 59,066 total)
Looks a lot like homework or a quiz... what have you tried?
January 7, 2007 at 11:07 pm
Outer joins are not always the culprit in slow SQL... joining a bunch of tables and returning to0 many columns usually is. Also, the reason why adding indexes isn't helping...
January 7, 2007 at 10:19 pm
Usually, the culprit is a CLUSTERED PRIMARY KEY... change it to non-clustered.
January 7, 2007 at 10:14 pm
If you want it to be unique across days (11PM today is NOT the same as 11PM yesterday)...
SELECT ...
GROUP BY DATEDIFF(hh,0,PinIssueDate)
January 5, 2007 at 10:30 pm
Ohhhh hold the phone right there... As much as I like Joe, his comments can really get out of hand... I don't care how good you are, no one has...
January 2, 2007 at 10:34 pm
Or...
declare @tabla table(field char(20))
insert @tabla values ('AABBZ')
insert @tabla values ('AADDZ')
insert @tabla values ('AA-EZ')
insert @tabla values ('AA--Z')
insert @tabla values ('AA++Z')
insert @tabla values ('AA+EZ')
insert @tabla values ('AACCZ')
SELECT *...
January 2, 2007 at 9:42 pm
John Rowan is correct about the existing rows... that's why some have suggested that the new column be a "calculated column" (see CREATE TABLE and ALTER TABLE in Books Online...
January 2, 2007 at 7:57 pm
Lee,
I absolutely agree with Brian on this one... I'm still looking forward to part 2, as well. Don't let the flamers deter you... think of it like an iceberg... you...
January 2, 2007 at 7:24 pm
Nope, with the second index in the code, I'm getting an INDEX SEEK on the OR method...
But I agree with the rest... why go through an index at all to...
January 2, 2007 at 7:24 am
You say you've been working on it for "weeks"... let's see what you've tried.
January 2, 2007 at 12:33 am
I don't know what either table has in it nor what either is used for and you left out the SELECT list so it's really hard to tell, but first...
January 2, 2007 at 12:26 am
Jules,
The real fact of the matter is, both the ISNULL and the OR method really stink up the room in this situation (NULL being treated as "future dated")...
To answer the...
January 1, 2007 at 11:44 pm
Outstanding, Serqiy... at least SOMEBODY tried this and it figures that it would be you
Actually, I whole heartedly agree with you...
January 1, 2007 at 11:16 pm
"REAL" certainly doesn't work that way on my box...
select convert ( real ,2.5000 )
select convert ( real ,10.0000)
select convert ( real ,20.0000)
select convert ( real ,2.0500 )
select convert (...
January 1, 2007 at 2:59 pm
Heh... on Brian's note, Steve... I'm thinking "get the glue".
January 1, 2007 at 2:19 pm
Viewing 15 posts - 57,061 through 57,075 (of 59,066 total)