Forum Replies Created

Viewing 15 posts - 391 through 405 (of 466 total)

  • RE: sql parameters

    capn.hector (4/2/2012)


    roryp 96873 (4/2/2012)


    Something like this?

    declare @myDate date

    set @myDate = '2012-04-02'

    select @myDate as myDate

    Obviously this is really simple, but you can use the @myDate in calculations or comparisions like you...

  • RE: sql parameters

    Something like this?

    declare @myDate date

    set @myDate = '2012-04-02'

    select @myDate as myDate

    Obviously this is really simple, but you can use the @myDate in calculations or comparisions like you would any other...

  • RE: returning 0 records

    No problem. Checking out the documentation can help give you a better understanding of the difference between the two if you are still having troubles.

    Inner Joins

    Outer Joins

  • RE: returning 0 records

    Just do an inner join instead of a full outer join.

  • RE: Talking baseball

    Ray K (3/28/2012)


    In case anyone (like me) missed it, the season officially opened this morning! Woo-hoo!!! :w00t:

    Also, in case anyone missed it, Magic Johnson's group is to purchase the...

  • RE: Search and Replace in TSQL

    homebrew01 (3/22/2012)


    The REPLACE function is another option.

    Only if there are no single quotes within the address field.

  • RE: urgent

    capn.hector (3/20/2012)


    roryp 96873 (3/20/2012)


    capn.hector (3/20/2012)


    homework or interview??

    i have the answer just want to know why

    EDIT well since its posted here is mine

    I figured as much as well, but if...

  • RE: urgent

    capn.hector (3/20/2012)


    homework or interview??

    i have the answer just want to know why

    EDIT well since its posted here is mine

    I figured as much as well, but if they can't even...

  • RE: urgent

    This is a pretty popular problem and can be googled for numerous solutions. Here's a slick one courtesy of the DBA I work with:

    ;WITH fb as(

    select * from...

  • RE: Talking baseball

    john.arnott (3/19/2012)


    Sure, there's a point to be made about going out with dignity, knowing when to quit and all that, but the competitive spirit that makes an athlete commit his...

  • RE: Search and Replace in TSQL

    If ALL addresses have the start and end quote, you could do something like this:

    select stuff(stuff(MyAddr, LEN(MyAddr), 1, ''), 1, 1, '')

    from MyTable

  • RE: Problem grouping records

    I agree with Lutz, it is a little unclear what you want here. You have max date in your query but you have all the same dates. Do...

  • RE: Combining union and union all

    Nice easy question. Still got me to go dig into BOL to make sure I had the right answer before I clicked submit though, so thank you!

  • RE: Talking baseball

    Either way I think it is pretty stupid to have different rules between the two leagues, make it the same for both leagues. Although I would take the more...

Viewing 15 posts - 391 through 405 (of 466 total)