Possible Duplicate:
mysql: Using LIMIT within GROUP BY to get N results per group?
I tried group by
, but then I'll only get 1 per account_id, I want 10 per account_id. Here's what I'm looking for.
SELECT id,account_id FROM whatever {LIMIT to 10 of each account_id}