Viewing 15 posts - 5,671 through 5,685 (of 15,381 total)
sql2k8 (2/19/2014)
I cannot post the output of this data. It is confidential. If you can share me the logic i will try and see if it is working.
I need...
February 19, 2014 at 3:30 pm
What about making your identity column the primary key and creating a clustered index for ID1, ID2, ID3?
February 19, 2014 at 3:27 pm
sql2k8 (2/19/2014)
I am using SQL Server 2008 Enterprise edition 64 bit on Windows serer 2008 enterprise edition 64 bit.
The below query works fine. I am trying to rewrite the code...
February 19, 2014 at 3:01 pm
SQLRNNR (2/19/2014)
Yay - I'm finally insane!!! :hehe::w00t:
Woohoo!! Congrats!!!
February 19, 2014 at 11:11 am
steve.barfield (2/19/2014)
But are you able to point us at a manual entry explaining what you say.
We were...
February 19, 2014 at 10:15 am
vigneshkumart50 (2/19/2014)
It's not a running total. The business rule for PriorVersion is sum(PreviousYear), so that I get PriorVersion values. And variance should be done for (PreviousYear - PriorVersion).
Lee me...
February 19, 2014 at 9:54 am
vigneshkumart50 (2/19/2014)
Hi Sean,I wasn't clear what I have to mention for that Priorversion column. So just mentioned the previous year. I have updated my post. Hope it helps.
NO. What...
February 19, 2014 at 9:28 am
Maybe you should just create your scripts with a more standard approach?
IF OBJECT_ID('usp_test','P') IS NOT NULL
drop PROCEDURE usp_test
GO
create PROCEDURE usp_test
AS
select 2 as row2
GO
February 19, 2014 at 9:06 am
vigneshkumart50 (2/19/2014)
Hi Sean,Updated my post.
Can you update to something useful?
PriorVersion will be like sum(PreviousYear)
What does that mean? In your sample output your PriorVersion columns all equal PreviousYear_Profit now.
This will produce...
February 19, 2014 at 8:28 am
vigneshkumart50 (2/19/2014)
You are correct. I disclosed some dummy raw data to show the expected output.
But this is the one that should be happening there.
PriorVersion will be like sum(PreviousYear)
Variance will...
February 19, 2014 at 8:11 am
OCTom (2/19/2014)
Sean Lange (2/18/2014)
OCTom (2/18/2014)
Answer: "I'm not...
February 19, 2014 at 8:08 am
What is the error message? Why are you using dynamic sql to create stored procs?
February 19, 2014 at 8:04 am
vigneshkumart50 (2/19/2014)
This is my table structure
create table calculate(
ID int identity (1,1),
PreviousYear_Profit float not null,
)
insert into calculate values (12500)
insert into calculate values (22700)
insert into calculate values (18500)
insert into calculate values...
February 19, 2014 at 7:55 am
OCTom (2/18/2014)
Answer: "I'm not really into continuing...
February 18, 2014 at 1:28 pm
Thanks Dwain. You were right in what you thought I was going for. Seems that this issue is in good hands now.
February 18, 2014 at 9:31 am
Viewing 15 posts - 5,671 through 5,685 (of 15,381 total)