I have this query:
SELECT gamer_id,COUNT(*) AS sum, SUM(amount) as amount
FROM sales_list
WHERE rdate BETWEEN '2012-04-01' AND '2012-04-30' AND gamer_id NOT IN
(SELECT gamer_id FROM sales_list WHERE rdate < '2012-04-01' GROUP BY gamer_id)
GROUP BY gamer_id
This query printed me “2” results and I’m looking just “1”.
I have 1 gamer’s that deposit 2 times in April and I don’t want to count the total deposits just to count the total gamer’s that deposited.
any advice?
I don’t really get it, but you want the numbers of deposits of a gamer only or the amount he deposited in addition?!
This should deliver number of deposits:
Edit: