Viewing 15 posts - 3,586 through 3,600 (of 5,394 total)
Try this:
UPDATE t1
SET Diff = t2.Diff - t1.Est
FROM tmp_table AS t1
INNER JOIN tmp_table t2
ON t2.id = t1.id-1
December 21, 2010 at 2:24 am
Now we just need somebody to say SQL is nothing like COBOL...:-D
December 21, 2010 at 2:05 am
SQLkiwi (12/21/2010)
Notice the ConstExprxxxx column reference - this often indicates a run-time constant is being used.
Conor Cunningham has a nice blog post on Runtime Constants:
December 21, 2010 at 1:26 am
Last run date is by definition the date the report runs, AKA GETDATE().
December 21, 2010 at 1:18 am
Can you post the actual execution plan?
You may also take a look at this article on how to post performace problems:
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
December 21, 2010 at 1:15 am
CirquedeSQLeil (12/20/2010)
The Dixie Flatline (12/20/2010)
Congratulations, Gianluca 😀I echo that - Congrats Gianluca.
Sorry for the delay...
Thanks Jason, Bob and Paul!
December 21, 2010 at 1:09 am
I don't want to look like you-know-who, but you really have to fix your design.
Try putting the ethnicity column in a separate 0-N table. This is what the UNPIVOT does...
December 21, 2010 at 12:58 am
I did not understand the mixed ethnicity part, but I think you can work on something like this:
DECLARE @Ethnicity TABLE (
[PersonID] INT NULL,
[ETH_CAUCASIAN] [varchar](10) NULL,
[ETH_AFRAMER] [varchar](10) NULL,
[ETH_HISP] [varchar](10) NULL,
[ETH_NATIVEAMER] [varchar](10)...
December 20, 2010 at 10:40 am
Have you tried with UNPIVOT?
Can you post table scripts and some sample data?
December 20, 2010 at 10:02 am
Grant Fritchey (12/20/2010)
Your post stood out because of the "who are you married to" comment.
:hehe: It was the only part I was not happy with. :hehe::-D
Surprisingly, it was...
December 20, 2010 at 9:49 am
Yes, that's my post!
I couldn't load Grant's blog today, it seemed to be down, but now it loads and also I got a mail from him.
I can't believe it!
December 20, 2010 at 8:10 am
Roy Ernest (12/20/2010)
Congrats to Gianluca Sartori. Won a free iPad.
Did I??? Great!!!!!
Thank you Red-Gate, Grant and Steve!!!
Where did you see this, Roy?
December 20, 2010 at 7:35 am
This looks more like the title of a book rather than a question.
Doesn't BOL cover the topic with enough detail?
December 20, 2010 at 5:50 am
SQLkiwi (12/18/2010)
It's a very new product, and will no doubt be much...
December 20, 2010 at 1:17 am
Craig Farrell (12/17/2010)
December 17, 2010 at 10:50 am
Viewing 15 posts - 3,586 through 3,600 (of 5,394 total)