Home All Groups Group Topic Archive Search About
Author
27 Apr 2007 8:44 PM
Greg Collins [Microsoft MVP]
I have a temp table that I create to build some statistics, the results of which I copy back to a live table.

My question is in regards to MIN/MAX and other such functions...

Do these get re-evaluated for every row, or is SQL smart enough to store the value for the next iteration? Because if they are re-evaluated every time, then I will definitely want to copy them into a variable first so they are only evaluated one time.

--
Greg Collins [Microsoft MVP]
Visit Braintrove ( http://www.braintrove.com )

AddThis Social Bookmark Button