MySQL Forums
Forum List  »  Spanish

Una funcion se ejecuta dos veces siendo la misma con igual parametro?
Posted by: PAUL CARLOS HERRERA PEREZ
Date: August 19, 2020 01:05AM

Hola, suponiendo que tenga la sgte consulta:
SELECT Sum(imp) AS totalimp,
Sum(money) AS totalmoney,
( Sum(money) / Sum(imp) ) AS result
FROM table
GROUP BY date

La funcion Sum(money) se ejecutara dos veces, o el motor realizara un solo calculo?
Gracias adelantadas por la respuesta.

Options: ReplyQuote


Subject
Views
Written By
Posted
Una funcion se ejecuta dos veces siendo la misma con igual parametro?
490
August 19, 2020 01:05AM


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.