I have a table like
MyTable (id, name, counter, createDate)
I can order the query like
Select * from MyTable order by counter;
I am just wondering, is it possible to limit the number of rows for each day. For example, I want the rows from the above query but I do not want them more than 10 rows from each day. So if it has 100 days of entry, I will be looking for less or equal to 10(row)x100(day) rows.
I am really not that good at SQL. Any help/suggestion would be really appreciatable.