Forum Replies Created

Viewing 15 posts - 1 through 15 (of 18 total)

  • RE: Linked lists

    This is a great solution, linked list idea adds complexity though. You can easily change the way you rank your songs and make Position column as float. Then you assign...

  • RE: A Hazard of Using the SQL Update Statement

    ChrisM@Work (9/9/2013)


    natalie.ignatieva (9/9/2013)


    Jeff Moden (9/8/2013)


    I, however, do not consider the fact that it won’t give you an error for an attempted multiple-update on a single row a fault. Nay....

  • RE: A Hazard of Using the SQL Update Statement

    paul.knibbs (9/9/2013)


    natalie.ignatieva (9/9/2013)

    I totally agree with you about that it's a feature and it's not a hazard.

    I would say it's entirely possible for it to be both. Yes, it's a...

  • RE: A Hazard of Using the SQL Update Statement

    Jeff Moden (9/8/2013)


    I, however, do not consider the fact that it won’t give you an error for an attempted multiple-update on a single row a fault. Nay. I...

  • RE: Using Cursors Inside Stored procedure problem

    I am not exactly sure what you do in your code, but if you want to pull results as

    TR001 555.55

    TR002 123.55

    TR003 34.00

    ..

    TR008 23.76

    THEN use

    SELECT Tbl_Transaction.int_TransCode, SUM(Flt_Amount) AS Amount

    FROM Tbl_Transaction...

  • RE: Using Cursors Inside Stored procedure problem

    Sorry, I forgot to close brackets:

    You probably could run something like:

    SELECT SUM(

    CASE

    WHEN Tbl_Transaction.int_TransCode = 'TR001' THEN Tbl_Transaction.Flt_Amount

    WHEN Tbl_Transaction.int_TransCode = 'TR002' THEN Tbl_Transaction.Flt_Amount

    (..etc)

    WHEN Tbl_Transaction.int_TransCode = 'TR008' AND (some...

  • RE: Using Cursors Inside Stored procedure problem

    You probably could run something like:

    SELECT SUM(

    CASE

    WHEN Tbl_Transaction.int_TransCode = 'TR001' THEN Tbl_Transaction.Flt_Amount

    WHEN Tbl_Transaction.int_TransCode = 'TR002' THEN...

  • RE: Variable Array Table

    The color coding is actually correct. The first [ character starts a table name that only ends at the final ], so everything in between them is part of the...

  • RE: Fun with IDENTITY - Part II

    Great question, thank you!

  • RE: Variable Array Table

    Management studio shows me this script mostly in black meaning there is something wrong in the script even if it's completed successfully. I guess even colorblind people can see it....

  • RE: How to improve this query?

    Please, try this code and let me know if it works faster for you:

    SELECT MAX(RecordId) AS RecordId

    INTO #T

    FROM dbo.AllRecordsAS s2

    GROUP BY SubrecordId

    INSERT INTO #Temptable

    (s1.SubrecordId,

    s1.RecordId)

    SELECT s1.SubrecordId, s1.RecordId...

  • RE: How many Records Will Get Selected

    A while ago there was one question with not intended mistake in the script and I lost points. Now I thought that this was just not intended mistake and lost...

  • RE: DDL trigger

    Good question!! Thank you.

  • RE: Control chars in XML

    The correct answer is "XML segment, with the integrated parser marking most values illegal, but IE can open this segment surrounded by root element ", but my IE gives me...

  • RE: Replication

    I want my point 🙂

Viewing 15 posts - 1 through 15 (of 18 total)