Forum Replies Created

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

  • RE: Crosstab or Pivot variant - stuck!

    That looks like it is just what was ordered. If it were me I would much rather have it the way it is to start with. Can you...

  • RE: Figuring out NSF payments

    SQL Kiwi (5/31/2012)


    Greg Snidow (5/31/2012)


    I hope my description of that record to Lynn will clarify things a bit.

    Aha, ok this is an easy tweak - we just need to traverse...

  • RE: Figuring out NSF payments

    Lynn Pettis (5/31/2012)


    Doesn't match with this from your original post:

    Also, the NSF transactions are assumed to occur in the same order as the payments. For example, if customer 1 has...

  • RE: Figuring out NSF payments

    SQL Kiwi (5/31/2012)


    Greg Snidow (5/31/2012)


    I don't get it Paul. I took 10 of the accounts that had records in my result set and not yours, and ran both of...

  • RE: Figuring out NSF payments

    SQL Kiwi (5/31/2012)


    Lynn Pettis (5/31/2012)


    It happens to be the one that Paul found with his solution.

    Yes I highlighted that difference in my first post. I wonder if Greg missed...

  • RE: Figuring out NSF payments

    Lynn Pettis (5/31/2012)


    Greg,

    Last night while working n this I did find a problem with your solution. Based on your requirements, one of the records you return is incorrect. ...

  • RE: Figuring out NSF payments

    jblovesthegym (5/31/2012)


    Greetings Greg, glad to see you're making progress on your issue. It's far above my mediocre scripting skills, otherwise it looks like a juicy one to sink teeth...

  • RE: Figuring out NSF payments

    I don't get it Paul. I took 10 of the accounts that had records in my result set and not yours, and ran both of our code on only...

  • RE: Figuring out NSF payments

    Thank you Paul. I was actually in the process of letting you know what a dunce I am for not trying that first. DOH!

  • RE: Figuring out NSF payments

    Thank you so much Paul for investigating. I ran your solution against a table with around 800,000 rows and it ran in around 4 seconds, where my solution took...

  • RE: Figuring out NSF payments

    dwain.c (5/30/2012)


    Greg Snidow (5/30/2012)


    Lynn Pettis (5/30/2012)


    you will have to tell me if it is okay.

    Lynn, it's very close. Below is my expected output. The three rows with asterisks...

  • RE: Figuring out NSF payments

    Lynn Pettis (5/30/2012)


    Once I got your code to run, I do see a slight problem. I have three less values than you. So I am looking into why...

  • RE: Figuring out NSF payments

    Lynn Pettis (5/30/2012)


    you will have to tell me if it is okay.

    Lynn, it's very close. Below is my expected output. The three rows with asterisks are data missing...

  • RE: Figuring out NSF payments

    Lynn Pettis (5/30/2012)


    Not sure this is correct, couldn't find any expected results based on the sample data provided, so you will have to tell me if it is okay.

    Lynn, I...

  • RE: Figuring out NSF payments

    SQLKnowItAll (5/30/2012)


    I could see maybe adding another table and a trigger to parse out your 5008 payments into their own table? Sometimes the reorganization of data in another step will...

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