Date: 11/29/07 (MySQL Communtiy) Keywords: no keywords SELECTI need to find the total number of customers who ordered at least 1500 in the year 2007. This query returns the number of grouped orders.id instead (an array of counts instead of one global count for all the rows). I know this is something simple I'm overlooking, but I've looked at this for a few minutes now and can't see what I'm doing wrong. Help please? ANSWER SELECT COUNT(*) FROM (query above) AS grand_total;
|