Forum Replies Created

Viewing 15 posts - 376 through 390 (of 667 total)

  • RE: Talking baseball

    The five run rule simply means that once a team has scored five runs in an innings it is side away, exactly for the reason you mentioned, keep the fun...

    --------------------------------------------------------------------------
    A little knowledge is a dangerous thing (Alexander Pope)
    In order for us to help you as efficiently as possible, please read this before posting (courtesy of Jeff Moden)[/url]

  • RE: HOW To write this query?

    ColdCoffee (6/8/2010)


    Jan Van der Eecken (6/8/2010)


    Why make it that complicated?

    SELECT FatherId, MAX ( age ) AS 'age'

    FROM @Fathers

    GROUP BY FatherId

    Or am I missing something?

    Jan Van , think u probably...

    --------------------------------------------------------------------------
    A little knowledge is a dangerous thing (Alexander Pope)
    In order for us to help you as efficiently as possible, please read this before posting (courtesy of Jeff Moden)[/url]

  • RE: HOW To write this query?

    Why make it that complicated?

    DECLARE @Fathers TABLE (FatherId VARCHAR(10), age INT)

    INSERT INTO @Fathers

    SELECT 'Father1', 12

    UNION ALL SELECT 'Father1', 17

    UNION...

    --------------------------------------------------------------------------
    A little knowledge is a dangerous thing (Alexander Pope)
    In order for us to help you as efficiently as possible, please read this before posting (courtesy of Jeff Moden)[/url]

  • RE: HOW To write this query?

    Is this a homework question? We're happy to help, but please first show us what you have tried already. Also show us your table structures and give us some readily...

    --------------------------------------------------------------------------
    A little knowledge is a dangerous thing (Alexander Pope)
    In order for us to help you as efficiently as possible, please read this before posting (courtesy of Jeff Moden)[/url]

  • RE: Using T-SQL to shift up blank fields in customer addresses

    No problem, that's what we are here for.

    --------------------------------------------------------------------------
    A little knowledge is a dangerous thing (Alexander Pope)
    In order for us to help you as efficiently as possible, please read this before posting (courtesy of Jeff Moden)[/url]

  • RE: Talking baseball

    Which one of the two umpires is Jim Joyce? The Plate Umpire or First Base Umpire? Shocking decision whoever made it. If I was the base Umpire with my limited...

    --------------------------------------------------------------------------
    A little knowledge is a dangerous thing (Alexander Pope)
    In order for us to help you as efficiently as possible, please read this before posting (courtesy of Jeff Moden)[/url]

  • RE: How to use result set in "IN" Function

    True Nils, but since the OP's question wasn't exactly clear (and he didn't get any more specific later), both Wayne and I just took a stab at it.

    --------------------------------------------------------------------------
    A little knowledge is a dangerous thing (Alexander Pope)
    In order for us to help you as efficiently as possible, please read this before posting (courtesy of Jeff Moden)[/url]

  • RE: Are the posted questions getting worse?

    CirquedeSQLeil (6/5/2010)


    TFS for us currently.

    TFS on the current project, SubVersion on the previous and VSS on the one before (my, I hated that one).

    --------------------------------------------------------------------------
    A little knowledge is a dangerous thing (Alexander Pope)
    In order for us to help you as efficiently as possible, please read this before posting (courtesy of Jeff Moden)[/url]

  • RE: How to use result set in "IN" Function

    Are you saying you want to see all columns from Table2 as well? Then Wayne's example only needs a tiny change:

    SELECT t1.*, t2.*

    FROM Table1 t1

    ...

    --------------------------------------------------------------------------
    A little knowledge is a dangerous thing (Alexander Pope)
    In order for us to help you as efficiently as possible, please read this before posting (courtesy of Jeff Moden)[/url]

  • RE: Using T-SQL to shift up blank fields in customer addresses

    Just guessing here, so correct me if I'm wrong. I'm assuming that you are doing sommething like

    SELECT name, street, city, county, postcode, country

    FROM customeraddresses

    WHERE <some condition>

    and that some of these...

    --------------------------------------------------------------------------
    A little knowledge is a dangerous thing (Alexander Pope)
    In order for us to help you as efficiently as possible, please read this before posting (courtesy of Jeff Moden)[/url]

  • RE: How to use result set in "IN" Function

    Uhm, why don't you try it out?

    --------------------------------------------------------------------------
    A little knowledge is a dangerous thing (Alexander Pope)
    In order for us to help you as efficiently as possible, please read this before posting (courtesy of Jeff Moden)[/url]

  • RE: flagging last 60days data

    Glad it helped. And thanks for the feedback.

    --------------------------------------------------------------------------
    A little knowledge is a dangerous thing (Alexander Pope)
    In order for us to help you as efficiently as possible, please read this before posting (courtesy of Jeff Moden)[/url]

  • RE: flagging last 60days data

    ColdCoffee, the OP said 60 days, not 2 months, right?

    --------------------------------------------------------------------------
    A little knowledge is a dangerous thing (Alexander Pope)
    In order for us to help you as efficiently as possible, please read this before posting (courtesy of Jeff Moden)[/url]

  • RE: flagging last 60days data

    Change

    SET @FromLast2Month = substring(convert(varchar,@Last2MonthDate,112),1,6)+'01'

    to

    SET @FromLast2Month = substring(convert(varchar,@Last2MonthDate,112),1,8)

    That should do the trick

    --------------------------------------------------------------------------
    A little knowledge is a dangerous thing (Alexander Pope)
    In order for us to help you as efficiently as possible, please read this before posting (courtesy of Jeff Moden)[/url]

  • RE: Renaming tables in different database

    Try

    USE MyDB1

    GO

    EXEC MyDB2..sp_rename 'MyTable', 'YourTable'

    --------------------------------------------------------------------------
    A little knowledge is a dangerous thing (Alexander Pope)
    In order for us to help you as efficiently as possible, please read this before posting (courtesy of Jeff Moden)[/url]

Viewing 15 posts - 376 through 390 (of 667 total)