Forum Replies Created

Viewing 15 posts - 1,666 through 1,680 (of 6,036 total)

  • RE: t-sql 2012 self joins

    I know what EAV is good for.

    A search.

    A search for value in one of the field.

    Instead of building one of those "catch all" queries store all the values in an...

    _____________
    Code for TallyGenerator

  • RE: RECREATE AN ID OF A ROW AFTER BEING DELETED

    JustMarie (1/25/2016)


    The ONLY business reason I can think of for this situation is a legal requirement that there be no gaps in the numbering. There's a vague memory of...

    _____________
    Code for TallyGenerator

  • RE: Need help related to index

    Hugo Kornelis (2/1/2016)


    The clustered index should always be created before loading

    And usually (well, that word - "usually" 🙂 ) a perfect candidate for a clustered PK on a staging table...

    _____________
    Code for TallyGenerator

  • RE: Flag Values Based on Columns

    MMartin1 (2/2/2016)


    This data could be pre-sorted elsewhere (like in Excel) imported, and the user is only interested in the columns presented to us (not the sort column). In the case...

    _____________
    Code for TallyGenerator

  • RE: Flag Values Based on Columns

    Eirikur Eiriksson (1/27/2016)


    But it is kind of disappointing when the structure of the solution is there and no one pitches in the final bit.

    😎

    Only thing which was there was a...

    _____________
    Code for TallyGenerator

  • RE: Date Function

    ScottPletcher (1/25/2016)


    Sergiy (1/25/2016)


    MMartin1 (1/25/2016)


    No, since this particular statement is vague the best we can do is start him off with some basics to try and get more information. This is...

    _____________
    Code for TallyGenerator

  • RE: Date Function

    MMartin1 (1/25/2016)


    No, since this particular statement is vague the best we can do is start him off with some basics to try and get more information. This is not wrong,...

    _____________
    Code for TallyGenerator

  • RE: Finding Stored Procedures

    Actually, none of the answers is correct.

    As it was mentioned, INFORMATION_SCHEMA.ROUTINES lists not only procedures but functions as well. Without a filtering ROUTINE_TYPE in the query - it's not a...

    _____________
    Code for TallyGenerator

  • RE: Date Function

    I think he was not totally understanding date math in sql server. Once he defined the problem better Scott was able to give him a solution. I was thrown...

    _____________
    Code for TallyGenerator

  • RE: Flag Values Based on Columns

    Jeff Moden (1/21/2016)


    nm.rajesh (1/17/2016)


    Thanks a lot 🙂

    See my post above. Unless the guarantees that I stated above are enforced by constraints and then the a_m column is brought into...

    _____________
    Code for TallyGenerator

  • RE: Flag Values Based on Columns

    Hugo Kornelis (1/21/2016)


    Hey, here's another idea.

    Instead of bashing people who at least attempted to help the OP, why don't you chime in with your solution to the problem? For me,...

    _____________
    Code for TallyGenerator

  • RE: Flag Values Based on Columns

    MMartin1 (1/21/2016)


    You assume a bit much though. The OP might have a situation where he needs to deliver a result now, and take care of database Normalisation after. We dont...

    _____________
    Code for TallyGenerator

  • RE: Flag Values Based on Columns

    MMartin1 (1/21/2016)


    That would make sense since this table is a heap. The ID column is not really an identifyer in this situation. We are not recommending a practice of not...

    _____________
    Code for TallyGenerator

  • RE: Flag Values Based on Columns

    MMartin1 (1/20/2016)


    Great solution Eirikur , the

    ,ROW_NUMBER() OVER

    (

    ...

    _____________
    Code for TallyGenerator

  • RE: Date Function

    SumonB (1/20/2016)


    This is used because if Current Date is less than 7th of the month, it should go to previous month to set the start date

    OK, this is opposite to...

    _____________
    Code for TallyGenerator

Viewing 15 posts - 1,666 through 1,680 (of 6,036 total)