Forum Replies Created

Viewing 15 posts - 10,801 through 10,815 (of 15,381 total)

  • RE: Coversion of below value and storing into int datatype failing

    And to add to Luis, there is a reason we have a datetime datatype in sql. Please us it and not some horrible integer/string disaster. It will cause you and...

  • RE: GO Part 1

    Richard Warr (9/7/2012)


    I looked at the first option and was disappointed that the second one wasn't

    Collect $200 for parsing GO.

    +1 😀

    Good question. Made me stop and think before my first...

  • RE: Help Required

    Here is my take on what you need to do. You should read the article at the first link in my signature, the one about best practices. Keep in mind...

  • RE: Are the posted questions getting worse?

    Lynn Pettis (9/6/2012)


    I guess we are supposed to be miracle workers here and know just what went wrong given minimal information.

    I saw that post and got very quiet as I...

  • RE: Are the posted questions getting worse?

    Lynn Pettis (9/6/2012)


    Steve Jones - SSC Editor (9/4/2012)


    OK, not my day. Not sure how to break the news here that this person is in way, way, over their head.

    http://www.sqlservercentral.com/Forums/Topic1353224-2799-2.aspx#bm1354093

    Okay, you're...

  • RE: Recursively calculate date intervals

    sku370870 (9/6/2012)


    Unfortunately, the 8 or so apps that use this database - which are all timeline driven - don't use a calendar table. In other apps I have a calendar...

  • RE: Combining multiple rows into one row for each id number

    pelusodm (9/6/2012)


    I need to combine multiple rows into one row for each id number so that I can display multiple corresponding trans_amt columns for each person. A person may have...

  • RE: Help Required

    a4apple (9/6/2012)


    CREATE TABLE Iss

    (

    id BIGINT,

    name Varchar(50)

    )

    CREATE TABLE Jou

    (

    id BIGINT,

    iss_id BIGINT,

    created_on DATETIME

    )

    CREATE TABLE Jd

    (

    id BIGINT,

    jou_id BIGINT,

    VARCHAR(10),

    old_value varchar(10),

    new_value varchar(10)

    )

    CREATE TABLE

    (

    id BIGINT,

    name BIGINT

    )

    INSERT INTO (id, name) values (1,'Phase')

    INSERT INTO (id,...

  • RE: Recursively calculate date intervals

    sku370870 (9/6/2012)


    Thank you both very much for your help. I was slow replying to Mark to thank him as I was working on the most awful bit of code -...

  • RE: [SQL Server 2005] Problem with ORDER BY clause

    cms9651 (9/6/2012)


    The rule for the sorting is mat geographic NAME.

    MAW = My Area West

    MAE = My Area East

    MAC = My Area Center

    MAS = My Area South

    Ahh there is the challenge...

  • RE: [SQL Server 2005] Problem with ORDER BY clause

    cms9651 (9/6/2012)


    Eugene Elutin (9/6/2012)


    The MAT column will be ordered randomly, but Tot will still come as a last one per DVD.

    I agree, that setup needs clarification about Total: is it...

  • RE: Please Help on Trailing spaces

    ScottPletcher (9/6/2012)


    Jeff Moden (9/6/2012)


    ScottPletcher (9/6/2012)


    I don't think audit triggers are relevant any more, given the better options built into SQL itself now.

    I've not found those options to do so well.

    Interesting....

  • RE: Performance issue

    sunny.tjk (9/6/2012)


    Lynn Pettis (9/6/2012)


    sunny.tjk (9/6/2012)


    I'll be sending the execution plan in a bit.

    I've a question, I ran the following query and when I looked at the execution plan it's just...

  • RE: [SQL Server 2005] Problem with ORDER BY clause

    Eugene Elutin (9/6/2012)


    Sean Lange (9/6/2012)


    ...

    This query will produce the same results:

    SELECT

    COALESCE ([MAT], 'Tot') AS [MAT],

    [DVD],

    SUM ([SALES])

    FROM

    TestTable

    GROUP BY

    (MAT),

    [DVD] --with rollup

    ORDER BY

    [DVD] DESC

    ...

    Try to add one more data row:

    INSERT INTO...

  • RE: [SQL Server 2005] Problem with ORDER BY clause

    The rollup option suggested previously is not what you want here. I have to admit I don't quite understand why your query is so complicated. It seems you introduced a...

Viewing 15 posts - 10,801 through 10,815 (of 15,381 total)