Average of Average in one row

Posted by asrijaal on Stack Overflow See other posts from Stack Overflow or by asrijaal
Published on 2010-04-06T09:19:36Z Indexed on 2010/04/06 9:23 UTC
Read the original article Hit count: 474

Filed under:
|
|

Hi there,

I'm not sure if this is possible what I'm trying to achieve. I want to get the avg of averaged columns.

SELECT avg(col1), avg(col2), avg(col3) FROM tbl

My Result should be the avg of all three avg columns, is this possible? Something like this

SELECT avg( col1, col2, col3) FROM tbl

doesn't work at MySQL 5.1

© Stack Overflow or respective owner

Related posts about sql

Related posts about mysql