Forum Replies Created

Viewing 15 posts - 1,666 through 1,680 (of 1,920 total)

  • RE: Variable Table Names

    T.alkathiri (4/27/2010)


    Thank you very much for the solution.

    It works just fine and the result as I wanted it to be.

    Please accept my best wishes and best regards

    Cheers

    Oh boy :blush:!! Thanks...

  • RE: Variable Table Names

    Happy that my code helped you..

    As for your error, you are trying to concatenate INT value to a VARCHAR variable.. To negate his error , we will have to...

  • RE: Aviod multiple executions

    Hey Jus, can you please post sample data for tblPeriod (in tthe form of INSERT INTO TABLE <> SELECT statments) ?? This will be very helpful to revamp the query...

  • RE: Variable Table Names

    ~Edit: Code removed - Better version of this is posted in the next post of mine

    Cheers!!

  • RE: Help for query, pivot technique

    Gianluca Sartori (4/27/2010)


    jasonshaw (4/27/2010)Why do we have the "For XML path ''" and the 1,1, space[0] ?

    It's a "trick" to generate on the fly a string with concatenation of all...

  • RE: Help for query, pivot technique

    Why do we have the "For XML path ''" and the 1,1, space[0] ?

    FOR XML PATH concatenates the rows values present in the column which you want to become as...

  • RE: Help for query, pivot technique

    Gianluca Sartori (4/27/2010)


    ColdCoffee (4/27/2010)


    Alessandro, Sei il benvenuto!

    Aaah! You fell victim of the "google translator" bug!

    I think you wanted to translate "You're welcome", that's "Prego" in Italian.

    "Sei il benvenuto" means...

  • RE: Help for query, pivot technique

    Jason, you could have closely followed either mine or Gianluca's code and with further modifications, you could have accomplished the task..

    But anyways, here is your code

    First, the table structure (teh...

  • RE: Help for query, pivot technique

    Alessandro, Sei il benvenuto!

  • RE: Help for query, pivot technique

    Gianluca, you beat me to it 😎

    And Alessandro, as he said convert the bit column into tinyint (i used INT though) and then you can aggregate..

    Cheers!!

  • RE: Help for query, pivot technique

    hey buddy, i did not understand fully your requirement, but i have a pivot query which might interest you..

    SELECT datax , [1] StatoImp1, [2] StatoImp3, [3] StatoImp3 FROM

    ...

  • RE: random query question

    Buddy, can you be more specific with your requirement??

    Please go through this following article and helping us help you?? 🙂

    CLICK HERE FOR FORUM POSTING ETIQUETTES - JEFF MODEN[/url]

    When u...

  • RE: Where Clause Help

    Buddy, can you be more specific with your requirement?? i mean, why do u wnat to compare the InvoiceDate and StartDate and then again using the same combination to filter...

  • RE: How to update efficiently?

    Hey Gerald, as promised , here is mini-version of the dynamic update query.. It is just a starter, you will have to build up on the start and customize it...

  • RE: How to get row value after GROUP BY by MIN or MAX

    Lynn Pettis (4/26/2010)


    Looks just as easy with a CTE:

    with GroupData as (

    SELECT

    Key1,

    MAX(VAL1) as MAX1,

    SUM(VAL2) as SUM2

    FROM

    ...

Viewing 15 posts - 1,666 through 1,680 (of 1,920 total)