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
2430
May 27, 2010 03:37PM
1375
May 28, 2010 08:32PM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

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.