Forum Replies Created

Viewing 15 posts - 331 through 345 (of 466 total)

  • RE: Talking baseball

    Steve Jones - SSC Editor (8/3/2012)


    Great player, HOF worthy for his accomplishments over time (3K hits, games played, All stars, 5 gold gloves, WS MVP, Rookie of the year, etc....

  • RE: DATETIME 2

    patrickmcginnis59 (8/2/2012)


    bitbucket-25253 (8/2/2012)


    I am rather surprised at the low percentage of correct answers.

    Correct answers: 37% (76)

    Incorrect answers: 63% (129)

    Total attempts: 205

    And the implications this could have to...

  • RE: BETWEEN, isn't necessarily

    MarbryHardin (8/1/2012)


    Scott D. Jacobson (8/1/2012)


    MarbryHardin (8/1/2012)


    Yes, that's my point. Between does not logically imply a comparison order, but SQL Server imposes one.

    And consider if you want to supply variables...

  • RE: BETWEEN, isn't necessarily

    If you have "value BETWEEN a AND b", it really means "value >= a AND value <= b".

    So your second statement is seeing if 0 >= 0.05 AND 0 <=...

  • RE: filter out values are not integer or null

    sqlfriends (7/30/2012)


    roryp 96873 (7/30/2012)


    ISNUMERIC will return a 1 if the value that is being tested can be converted to a int, bigint, smallint, tinyint, decimal, numeric, money, smallmoney, float, or...

  • RE: filter out values are not integer or null

    ISNUMERIC will return a 1 if the value that is being tested can be converted to a int, bigint, smallint, tinyint, decimal, numeric, money, smallmoney, float, or real datatype. ...

  • RE: practical application of REVERSE function?

    I've used it to parse out address fields that have city, state and zip in one field. It's usually easier to look through it backwards with the idea that...

  • RE: Insert a character in a string

    I think the STUFF function is what you are looking for.

    declare @txt varchar(20) = 'RA99999-99'

    select STUFF(@txt, 3, 0, '0')

  • RE: "Question of the Day" is about:

    Michael Lysons (7/27/2012)


    Good, back-to-basics question.

    😀

    Lol!

    In all seriousness though, I selected the judge your skills option thinking it meant more than your SQL Server skills, but also you reasoning and logic...

  • RE: If Variable is Blank Then No Where Clause

    Or at the risk of being wrong again, I think a catch-all query may be what you are looking for.

  • RE: If Variable is Blank Then No Where Clause

    Does

    WHERE Agent = @test-2 AND Agent <> ''

    not work?

    Edit: Nevermind that, I read your question wrong.

  • RE: Cast in Varchar with different options

    honza.mf (7/16/2012)


    rhythmk (7/16/2012)


    It is upto you if you want to learn you can use in such cases where it is hard to count the characters (exactly 30 in b option)...

  • RE: eliminating 'reflections' from a query result

    You could just pick the ones where the second order id is greater than the first.

    select *

    from OrderItem o1

    join OrderItem o2 on o2.itemid = o1.itemid and o2.orderid > o1.orderid

  • RE: Talking baseball

    john.arnott (7/11/2012)


    SQLDCH (7/11/2012)


    Being a Giants fan, I'm pretty excited to see the boys in orange and black do well. It helped to justify their place in the game even...

  • RE: Talking baseball

    SQLDCH (7/6/2012)


    roryp 96873 (7/6/2012)

    I think the Reds and the Nats will be shaking off that "doormats of the league" reputation over the next few years at least. Both are...

Viewing 15 posts - 331 through 345 (of 466 total)