SAMM
04-09-2007, 03:39 AM
I have a database, there is over 1000 customer.
I have to sort top 10 spent customer.
my query is:
select distinct A.customer,sum(A.EC)
from table A
group by customer
order bycustomer
limit 10
this coding is cannot work. Pls advice.
I have to sort top 10 spent customer.
my query is:
select distinct A.customer,sum(A.EC)
from table A
group by customer
order bycustomer
limit 10
this coding is cannot work. Pls advice.