Is it possible to get the average value for a column, as well as the average value for the same conditional column? or just combine these two queries into one.
SELECT AVG( field ) from table SELECT AVG ( field ) from table where col = some_val
If there is no easy way to combine them using mysql native functions, can a stored function handle it or a user-defined function?
Eric Pigeon
source share