Forum Replies Created

Viewing 15 posts - 121 through 135 (of 326 total)

  • RE: How to use Select within select in the same Select statement..??

    bhushan_juare (2/4/2013)


    [font="Courier New"]Hi All,

    I am unable to do that using Case statement..

    Bhushan[/font]

    that's how you implement case statement

    CREATE TABLE #Fields

    (

    MODEL_SIZE INT,

    ...

  • RE: How to use Select within select in the same Select statement..??

    bhushan_juare (2/4/2013)


    [font="Courier New"]Hi All,

    I Have table where it includes fields model_size, model_type, actual_qty, process_qty, order_type. Now I want to display all fields + model_size who has order_type = 'Some X'...

  • RE: Type conversions and Nulls

    bitbucket-25253 (2/4/2013)


    L' Eomot Inversé

    nice question .. glad to see you contributing to the QOD to allow others to learn what you can teach.

    +1

    thanks for the question Tom...

  • RE: Using the OUTPUT statement for data change logging

    greg.senne (2/4/2013)


    In my stored procedures that change data, I include data change logging. It logs to a table the Table name, the PK value of the table, the field name,...

  • RE: help on group by with Join

    Lokesh Vij (2/4/2013)


    This is what I have come up with based on your requirement. Not sure for what you need a group by when total amount in there in Transaction...

  • RE: help on group by with Join

    pawan_rb (2/3/2013)


    Thanks. Can you please also show me thae way to compose the sql? I was also thinking in the same line like in er joining and grouping but couldnt...

  • RE: help on group by with Join

    pawan_rb (2/3/2013)


    I have two tables. One has records for transactions, another has records for purchased products. Transaction table has TransactionID, TotalAmount, TransactionDate. The purchasedProducts table has ProductID and TransactionID. Each...

  • RE: help on group by with Join

    please provide ddl(table definitions ) and sample data ...

  • RE: Date Difference

    easy one to start the day..

  • RE: Oops! SQL column swap or SQL column clobber?

    Nice question ..

    Dineshbabu (1/31/2013)


    Actually I'm unable to understand the comments and answers properly. Problem is with the word "CLOBBER".

    But I'm aware of UPDATE behaviour and I know there won't be...

  • RE: Computed column

    reminder of the basics ..

    thanks for the Question

  • RE: Data compression

    bitbucket-25253 (1/29/2013)


    Nice question on basics ....

    +1

    Thanks for the question !!!

  • RE: Help explaining query results.

    Don. (1/29/2013)


    Hi Guys,

    I was working on a script that would show all records in Table A that didnt have corresponding records in Table B.

    I thought it would be simple enough...

  • RE: Update All columns in table

    Jason-299789 (1/29/2013)


    Demon correct, but you can use the $Action on the output statement will show the action that was performed for that row of data.

    Exactly Jason ; That ought to...

  • RE: Update All columns in table

    Lokesh Vij (1/29/2013)


    Using merge (as pointed out by demonfox) you can easily user INSERTED.* and DELETED.* (as mentionded by Dwain) after MERGE in order to capture, columns and values which...

Viewing 15 posts - 121 through 135 (of 326 total)