Thread
:
list customers with average ordered quantities?
View Single Post
#
2
(
permalink
)
05-23-2006, 11:56 PM
alexfr
Junior Member
Join Date: May 2006
Posts: 24
MySQL
answer.
Re: list customers with average ordered quantities?
[sql]
SELECT c.nb, c.name, Avg (o.qty)
FROM customers c, orders o
WHERE c.nb=o.nb
GROUP BY c.nb, c.name
HAVING Count (*) > 1
[/sql]
alexfr
View Public Profile
Send a private message to alexfr
Find all posts by alexfr