Home Forums SQL Server 2008 SQL Server 2008 - General facing serious performance issues, please see the scenario below need urgent help - Please chk the code below RE: facing serious performance issues, please see the scenario below need urgent help - Please chk the code below

  • chris@home gave you teh best advice so far: if you can rewrite teh query, redo it so that it is 5 unions, using the agregate example he already put to gether for you;

    you are looking at at least an order of magnitude improvement doing it that way(ie 6 seconds instead of 60)

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!