Viewing 15 posts - 46,441 through 46,455 (of 59,062 total)
Steve Jones - Editor (12/22/2008)
I knew Jeff would have something!
Heh... Thanks, Steve. I'm just surprised because it's such an old trick and it's posted everywhere. You would think...
December 22, 2008 at 2:53 pm
Jonathan Kehayias (12/22/2008)
December 22, 2008 at 2:46 pm
Nah... you just got bit by the rounding with integers... try this...
DECLARE @StartDate DATETIME,
@EndDate DATETIME,
...
December 22, 2008 at 2:12 pm
Kit Brandner (12/22/2008)
December 22, 2008 at 1:32 pm
Steve Jones - Editor (12/22/2008)
And I'd like to see you try.I wonder how generating pin codes would be faster procedurally? Is it some randomness being introduced somehow?
Straight-up numeric pin...
December 22, 2008 at 1:21 pm
Wait a minute! What are you calling a duplicate!? You mean to tell me that no other username can make an entry on that date for that sLevel?
December 22, 2008 at 12:57 pm
The reason it takes so long is because you've not aggregated the data. Please see the following for how to do a proper cross tab...
[font="Arial Black"]http://www.sqlservercentral.com/articles/T-SQL/63681/[/font][/url]
Without some actual test...
December 22, 2008 at 12:48 pm
In the previous post, you wrote ...
The select works to get me the counts. And the idea of the Tally table does make the selects more simplistic. I...
December 22, 2008 at 12:41 pm
Comparing that to the original, it looks like all you were missing was the FROM clause.
December 22, 2008 at 12:27 pm
Kit Brandner (12/22/2008)
December 22, 2008 at 12:24 pm
Can you post what you ended up with, please? Thanks.
December 22, 2008 at 10:38 am
This is what Vladan is talking about...
--===== Move just the data we want to a place where we can work on it
SELECT ISNULL(Sal,0) AS Sal,
...
December 22, 2008 at 5:58 am
GilaMonster (12/22/2008)
Jeff Moden (12/22/2008)
Ohhhhh.... that stuff..... gee... I wonder when they'll come out with an EDI data type? 😛
CREATE TYPE EDIEXTERNAL NAME EDI.[PointlessClrTypes.EDI] ;
:hehe:
December 22, 2008 at 5:25 am
AnzioBake (12/22/2008)
What happens for for tables that the rows are not in a clustered index with the right order.
Like I said in the article... copy to a temp table and...
December 22, 2008 at 5:14 am
Viewing 15 posts - 46,441 through 46,455 (of 59,062 total)