Forum Replies Created

Viewing 15 posts - 5,671 through 5,685 (of 15,381 total)

  • RE: Need help with this query

    sql2k8 (2/19/2014)


    Hi ,

    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...

  • RE: Columns in primary key

    What about making your identity column the primary key and creating a clustered index for ID1, ID2, ID3?

  • RE: Need help with this query

    sql2k8 (2/19/2014)


    Hi,

    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...

  • RE: Are the posted questions getting worse?

    SQLRNNR (2/19/2014)


    Yay - I'm finally insane!!! :hehe::w00t:

    Woohoo!! Congrats!!!

  • RE: How is my user getting update permissions through stored procedure?

    steve.barfield (2/19/2014)


    Thanks for your answer Lowell - that is the conclusion we are coming to.

    But are you able to point us at a manual entry explaining what you say.

    We were...

  • RE: How to show variance in column values

    vigneshkumart50 (2/19/2014)


    Hi Sean,

    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...

  • RE: How to show variance in column values

    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...

  • RE: Simple query failing

    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

  • RE: How to show variance in column values

    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...

  • RE: How to show variance in column values

    vigneshkumart50 (2/19/2014)


    Hi,

    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...

  • RE: Dumb interview answers

    OCTom (2/19/2014)


    Sean Lange (2/18/2014)


    OCTom (2/18/2014)


    The following was in 1991 and in response to the question, "How many seminars or classes have you attended to keep up on technology?"

    Answer: "I'm not...

  • RE: Simple query failing

    What is the error message? Why are you using dynamic sql to create stored procs?

  • RE: How to show variance in column values

    vigneshkumart50 (2/19/2014)


    Hi,

    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...

  • RE: Dumb interview answers

    OCTom (2/18/2014)


    The following was in 1991 and in response to the question, "How many seminars or classes have you attended to keep up on technology?"

    Answer: "I'm not really into continuing...

  • RE: Grouping by pairs, order agnostic

    Thanks Dwain. You were right in what you thought I was going for. Seems that this issue is in good hands now.

Viewing 15 posts - 5,671 through 5,685 (of 15,381 total)