MySQL Forums
Forum List  »  Optimizer & Parser

Recurring expressions
Posted by: Johannes Gerer
Date: May 27, 2010 03:37PM

Does the Optimizer evaluate the avergae only one time, or two times?

SELECT AVG(col1),1/AVG(col1) FROM table

Thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
Recurring expressions
2504
May 27, 2010 03:37PM
1426
May 28, 2010 08:32PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.