Forum Replies Created

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

  • RE: Getting data within a time period

    Now all that needs to be done is just include the condition that the above scenario will apply only if the ship reaches the port(PORT_CD) 'BEZEE' first.

    How do you determine...

    Far away is close at hand in the images of elsewhere.
    Anon.

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

    Far away is close at hand in the images of elsewhere.
    Anon.

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

    Far away is close at hand in the images of elsewhere.
    Anon.

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

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Are the posted questions getting worse?

    Tom.Thomson (7/25/2011)


    ...Why do the correct ones get corrected?

    Meh! Moderator's perogative 😉

    Far away is close at hand in the images of elsewhere.
    Anon.

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

    Far away is close at hand in the images of elsewhere.
    Anon.

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

    Far away is close at hand in the images of elsewhere.
    Anon.

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

    Far away is close at hand in the images of elsewhere.
    Anon.

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

    Far away is close at hand in the images of elsewhere.
    Anon.

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

    Far away is close at hand in the images of elsewhere.
    Anon.

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

    Far away is close at hand in the images of elsewhere.
    Anon.

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

    Far away is close at hand in the images of elsewhere.
    Anon.

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

    Far away is close at hand in the images of elsewhere.
    Anon.

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

    Far away is close at hand in the images of elsewhere.
    Anon.

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

    Far away is close at hand in the images of elsewhere.
    Anon.

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