Try this:
SELECT AVG((5+8+10)/3) AS rate FROM an_existing_table_name;

----- Original Message ----- From: "Mike Blezien" <[EMAIL PROTECTED]>
To: "MySQL List" <mysql@lists.mysql.com>
Sent: Thursday, May 19, 2005 9:24 AM
Subject: Using AVG



Hello,

when using the AVG function like this:
SELECT AVG((5+8+10)/3) AS rate;

it returns NULL??

the AVG can be used to do a literal math calculation ??

TIA
--
Mike(mickalo)Blezien
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Thunder Rain Internet Publishing
Providing Internet Solutions that work!
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to