The SQL book I am using has this:
mysql> select avg(distinct prod_price) as avg_price
-> from Products
-> where vend_id = 'dll01'
-> ;
and responds thus:
ERROR 1064: You have an error in your SQL syntax near 'distinct
prod_price) as avg_price
from Products
where vend_id = 'dll01'' at line 1
How do I do this, if I can?
--
Bob Rea
Fear of Hell is pernicious;
So is fear of Heaven.
[EMAIL PROTECTED] http://www.sirius.com/~rear
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php