Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)

  • RE: More efficient way

    It is fun Chad 😀

    I'm thinking I shouldn't post the table structures or anything like that because of our privacy and security restrictions. I may have even stepped over the...

  • RE: More efficient way

    BTW, thank you very much to everyone.

  • RE: More efficient way

    my final result.

    DECLARE @Start_Date As Datetime

    DECLARE @End_Date As Datetime

    DECLARE @TodaysDate As Datetime

    SET @Start_Date = '04/01/2010'

    SET @End_Date = '07/01/2010'

    SET @TodaysDate = GETDATE()

    SELECT COUNT(Clients.Client_Number) As Totals

    ,SUM(CASE WHEN DATEDIFF(yy,...

  • RE: More efficient way

    over an hour

  • RE: More efficient way

    I'm gonna have to talk to the DBA's. It's running around 6 minutes this morning. Up from 9 seconds last night. Here it is. Much better. additional comments welcome if...

  • RE: More efficient way

    I will but I'm not quite finished with it yet. As soon as I get it sorted I'll posted it.

    This turned into a nice post. Thanks all

  • RE: More efficient way

    9 seconds total execution time.

  • RE: More efficient way

    9 seconds. 😉

  • RE: More efficient way

    you folks are all fabulous. thank you all.

    I had been trying to use the case statement but ran into problems and didn't get the results I was after. I...

  • RE: More efficient way

    Alvin Ramard (10/19/2010)


    sturner (10/19/2010)


    you're kidding me right? ...

    You took the words right out of my mouth!

    I don't waste my time or yours with jokes on forums. I asked because I...

  • RE: More efficient way

    it's not as big as it may appear. it's the ten unions that make it look complicated.

    But thanks for you input.

Viewing 11 posts - 1 through 11 (of 11 total)