Forum Replies Created

Viewing 15 posts - 1,036 through 1,050 (of 3,543 total)

  • RE: Convert positive number to a negative

    steveb. (7/26/2011)


    preynolds 73137 (7/26/2011)


    SQL noob here, but would ABS work?

    ABS would work for the opposite, (negative to positive)

    Except if you combine both

    -ABS(value)

    would always give you a negative result...

  • RE: When to use full-text

    The problem you will have with FTS is that it will ignore the braces and end up with a word list of

    Bill

    Esquire

    Smith

    Smitty

    Will

    William

    Willy

    so you could end up with incorrect output...

  • RE: Are the posted questions getting worse?

    Grant Fritchey (7/26/2011)


    Yeah, luckily I'm behind on preparing my morning coffee...

    After meeting you, don't know why but it conjures up an image of you in a pinny...

    whoa! too much information...

  • RE: Are the posted questions getting worse?

    Tom.Thomson (7/25/2011)


    ...Why do the correct ones get corrected?

    Meh! Moderator's perogative 😉

  • RE: Login Properties

    On 2008R2 Dev Edition it produces NULL even when following the actionss in the question and yes I had to restart SQL server when changing security.

    Whilst this does not detract...

  • RE: The "Numbers" or "Tally" Table: What it is and how it replaces a loop.

    Jeff Moden (7/21/2011)[hrGood idea but the dual 11,000 row Tally Table has 30 years of "capability"... doing it directly as you have limits the functionality to 299.16666666667 days. 🙂 ...

  • RE: The "Numbers" or "Tally" Table: What it is and how it replaces a loop.

    How about a simpler approach

    SELECT DATEADD(minute, (t.N - 1) * 30, @DateStart)

    FROM dbo.Tally t

    WHERE t.N BETWEEN 1 AND (DATEDIFF(day, @DateStart, @DateEnd) + 1) * 48

    ORDER BY t.N...

  • RE: Are the posted questions getting worse?

    Jeff Moden (7/20/2011)


    IIRC, he's a moderator over on the "SQL Server Performance" site, isn't he?

    Yes he is.

  • RE: Are the posted questions getting worse?

    Lynn Pettis (7/19/2011)


    And yes, I remember well the "Bankers Rounding". I seem to remember that my solution turned out to meet David Burrows requirements, or did he have to...

  • RE: Are the posted questions getting worse?

    Jeff Moden (7/19/2011)


    Zowie! I think I've known you even before I knew Lynn and Gail! Now that I think about it, I believe Remi fits in that same...

  • RE: Are the posted questions getting worse?

    Jeff Moden (7/19/2011)


    Good golly, Miss Molly! I just looked back at how many posts there are about my nomination. Thanks, Gianluca, for bringing it up. I'm at...

  • RE: SQL Grouping Data

    Also check that you are using my latest query (repeated below)

    Also check the WHERE clause as this could drop lines giving a false impression that the query is not working

    SELECT...

  • RE: SQL Grouping Data

    ringovski (7/12/2011)


    Many thanks for your help :-D, but it is still not what I need.

    I have uploaded a spreadsheet that shows the difference. Invoice ID 135393 only has one...

  • RE: SQL Grouping Data

    ringovski (7/10/2011)


    And you got gets an error when I compile it;

    Msg 4145, Level 15, State 1, Line 22

    An expression of non-boolean type specified in a context where a condition is...

  • RE: Are the posted questions getting worse?

    Steve Jones - SSC Editor (7/8/2011)


    TGIF

    Actually not so much. Leaving for the UK on Sunday, will be out of touch for most of the next week. Behave.

    All being well, will...

Viewing 15 posts - 1,036 through 1,050 (of 3,543 total)