Forum Replies Created

Viewing 15 posts - 57,391 through 57,405 (of 59,070 total)

  • RE: Diagrams....

    Be aware that when you change a diagram and save it, it actually updates your database to match... diagrams are really a form of somewhat anorexic data models.

  • RE: Remote connection from within Stored Proc.

    Another possibility would be to use a "Linked Server" which would also hide the login and password from prying eyes.

  • RE: how to select different from different tables

    That's a good start... got any data we can play with and, like I asked, are the tests stored in the same table as the quizzes?  If so, what marks...

  • RE: how to select different from different tables

    Where is the Test info stored?  In the QuizLog?

    Sidebar... does you table actually have columns with spaces in the names ?

    I think it...

  • RE: best possibilities

    It sounds like the classic "make change" problem that used to be taught in many programming classes... I'm on my way to work right now but I think a function...

  • RE: Sql 2000 DTS timeout?

    Perfect case of too many cooks spoiling the broth Thanks for the feed back on what you found, Ville... definitely something to keep...

  • RE: Grouping total sales by payment type

    No.  Serqiy is correct... the table design is wrong... if you take multiple payments for a given invoice, you should have multiple rows.

  • RE: Grouping total sales by payment type

    Stephen,

    If you want separate totals for each payment type, then this would do...

     SELECT SUM(Cash)    AS TotalCash,

            SUM(Cheque)  AS TotalCheque,

            SUM(CC)      AS TotalCC,

            SUM(Account) AS TotalAccount

            SUM(Total)   AS GrandTotal

           ...

  • RE: quantize ?

    quoteActually, none of them is absolutely right.

    If you have one that is, would you mind sharing it...

  • RE: quantize ?

    Thanks for the feedback, Mark...  this one was a lot of fun!

    Serqiy... I'd still like to know the "magic" behind your 5 second report, if you get a chance.

  • RE: Grouping total sales by payment type

    Should the totals be by day for the range or are you just looking for a grand total for the range?

  • RE: quantize ?

    Thanks for the benchmark, Serqiy... the computed columns help a lot especially when you make them both deterministic so they can be indexed... got it down to 7 seconds on 4...

  • RE: quantize ?

    Mark,

    I don't know if I can get it to be a fast as Serqiy says he can, but I did get it down to 8 seconds...

    First, add this index...

    October 14, 2006 at 12:27 am

    #665884

  • RE: quantize ?

    Serqiy, my old friend... I'm all ears... there's code in the post to gen a million rows... can you show us how to get a similar report as the cross...

  • RE: quantize ?

    Thanks Mark,

    I finally have enough information to help... with great zeal, I may add...

    First, as Serqiy suggested, you don't need all those "generated" columns.  He suggested keeping one of them...

Viewing 15 posts - 57,391 through 57,405 (of 59,070 total)