Forum Replies Created

Viewing 15 posts - 31 through 45 (of 85 total)

  • RE: Flag population based on Row_Value

    Hi Smith,

    Apologies for the same :-

    insert into sales (ID,Sales_Jan,Sales_Feb,Sales_Mar,Sales_Apr,Sales_May)

    values

    (1,100, 0,0,0 ,0 )

    insert into sales (ID,Sales_Jan,Sales_Feb,Sales_Mar,Sales_Apr,Sales_May)

    values

    (2,120,0,200,300,0)

    insert into sales (ID,Sales_Jan,Sales_Feb,Sales_Mar,Sales_Apr,Sales_May)

    values

    (3,0,100,0,300,0)

    insert into sales (ID,Sales_Jan,Sales_Feb,Sales_Mar,Sales_Apr,Sales_May)

    values

    (4,100,200,100,100,100)

    insert into sales (ID,Sales_Jan,Sales_Feb,Sales_Mar,Sales_Apr,Sales_May)

    values(5,100,0,100,100,100)

    --- Sales ID to populated is...

  • RE: Try catch in a transaction block or transaction in try catch block???

    Hi Jeff/Gila Monster,

    It was just an example 😛 to help someone who posted a query in some other thread for "How to delete tables within a DB following some pattern...

  • RE: Matching the Char

    What I mean is the data is normalized in the table but I have created a derived column by concatenating the columns 🙂 .

    I just wanted a way to match...

  • RE: Matching the Char

    Sean u had me ...The data is very well normalized but I wanted to know a logic to match such data other than normalizing it (out of curiosity :hehe: and...

  • RE: Matching the Char

    Thanks Cadavre,

    Wish you many more centuries for providing the solution.

    Thanks,

    Ankit

  • RE: Matching the Char

    Cause the client requirement is like that 🙂 .

  • RE: Matching the Char

    Thanks Gina

  • RE: Matching the Char

    Hi Gila,

    Thanks for your reply. The data is normalized but I have concatenated fields separated by "/". I want to now populate ID to these fields with fields eg: ...

  • RE: Find Max , Min , Value in the SIngle Query

    Thanks cold coffee,

    But I was looking for solution that Adi provided. I hope you too would appreciate his code.

    Regards,

    Ankit

  • RE: Find Max , Min , Value in the SIngle Query

    Thanks Adi this is perfect and clears my concept on Joins as well.

    Regards,

    Ankit

  • RE: Logical Error in the Proc involving Nested Cursor

    Sean Lange (10/15/2011)


    Are you getting an error message? "Not working for me" doesn't give me much to go on. 😀

    If I execute

    DECLARE @QUERY NVARCHAR(MAX)SET @QUERY = N'SELECT 1'EXECUTE sp_executesql...

  • RE: Logical Error in the Proc involving Nested Cursor

    Sean Its not working for me ?

  • RE: Logical Error in the Proc involving Nested Cursor

    Lynn Pettis (10/14/2011)


    If you are getting errors, it would help to know the errors for one.

    Lynn,

    1.the DPPEngine Proc is creating queries and storing into Queries table.

    2.Superb cursor is executing these...

  • RE: Logical Error in the Proc involving Nested Cursor

    Sean Lange (10/14/2011)


    Your post wasn't showing up on the active threads.

    EXECUTE sp_executesql N'USE Rule_DB; EXEC [DPPEngine] ''MIGRATION_DB'',''Filteration-1,Mapping,Mapping-dvt,Mapping-Update1,Filteration-2,Pre-Cflag,CFlag,InSourceMerging,CS-1'',''v4.0'', @SOURCEID'

    Sean, Thanks for your help.

    The ";" after Rule_DB is making @Sourceid...

  • RE: Logical Error in the Proc involving Nested Cursor

    Am I missing some information or is it Friday that is keeping people busy ?

Viewing 15 posts - 31 through 45 (of 85 total)