*snip*
Sounds like you want:Perfect. (I'm saying, "duh" over here to myself!)
ORDER BY ROUND(($varA*(establishments^2)+$varB*(establishments)+$varC),2)
-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]