Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to perform calculation with the previous record
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00537434
Message ID:
00538766
Views:
8
>I found that if I comment the line AND ABS((HP2.Price / HP1.Price) - 1) > .5 , the query takes 13 seconds.

What does ShowPlan produce? I betting that a Table Scan. I can't give an exact reason why it runs faster on 2000 w/o the ShowPlan. I guess that it's just improvements to the optimizer and engine.

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform