Forum Replies Created

Viewing 15 posts - 1,606 through 1,620 (of 1,923 total)

  • RE: INSERT/DELETE specific records

    Buddy, small tweaks in the code will get you there!

    For this requirement,

    The SELECT statement for the INSERT should return these records:

    A,5

    C,1

    These are the records in #ListUpdate that are not in...

  • RE: Analysing a T-SQL Query

    Wonderful question and equally wonderful explanation. The basics is hit in the nail! Thanks for this!

  • RE: SQL Query

    Hey there! I have coded an below-par code for this requirement! This is what that struck my mind! Pro'ly there are many altenative super-fast , minimal-code, optimal-performance code available....

  • RE: SQL Query

    Please go through this following article to understand how to post data to get the best help:CLICK HERE FOR FORUM POSTING ETIQUETTES - JEFF MODEN[/url]

    When u do so, i am...

  • RE: SQL Query

    Ok, i can understand what you want your code to do. I am in the middle of writing a query for you, but it will take time, In the meanwhile,...

  • RE: Updating a single record from Multiple

    kramaswamy (5/5/2010)


    DECLARE @Field1 INT

    DECLARE @Field2 INT

    DECLARE @Field3 INT

    DECLARE @Field4 INT

    SELECT @Field1 = Field1, @Field2 = Field2, @Field3 = Field3, @Field4 = Field4

    FROM @Test

    Wont this populate the local variables with the...

  • RE: pivot table

    Dear Lavanya, you have not even provided one of the requisites that Gianluca has asked for! Please provide us those and then we will provide you with awesome code! Guessing...

  • RE: Finding "strings" without extensions

    ~Edit : My bad, posted in the wrong thread! 😀 ! Sorry!

  • RE: Delete duplicate rows

    Jason's code will perfectly delete the duplicate rows.

    As a side note, mbrady5, please post the table structures (create table scripts), some sample data cokked-up from your original data (as...

  • RE: INSERT/DELETE specific records

    emily-1119612 (5/4/2010)

    So conceptually I want to truncate #Lists and Insert all records from #ListUpdate into #Lists. This would give me my desired results. From a coding/practical perspective I want to...

  • RE: Updating a single record from Multiple

    Gianluca Sartori (5/4/2010)


    Nice code, Mr. Coffee!

    Looks like you specialized in pivot/unpivot lately...

    Oh am flattened! :blush: Thanks, Mr.Tally from Italy!!

    Of late this PIVOT and UNPIVOT requirements are coming in large...

  • RE: Updating a single record from Multiple

    When you run my code, i get these values in @test-2 table before and after the UPDATE.

    SELECT * FROM @test-2

    1. BEFORE Update

    ID ...

  • RE: Updating a single record from Multiple

    Hey i might have got what you wanted. Here is the full code:

    First the test environment; sample data and the schemas

    Note: I have used the same schema provided by you...

  • RE: Updating a single record from Multiple

    Hey Kumar, based on the sample data and your requirement, i have arrived half-the-way.

    This will not produce the full result, but i have come to a point where i have...

  • RE: Missing numbers in a series

    Paul White NZ (5/4/2010)

    Hey, would anyone like to see the SQLCLR solution to this same problem? 😉

    I would love to, Mr.BlackCap! Please shoot it out!

Viewing 15 posts - 1,606 through 1,620 (of 1,923 total)