i have a db with records with date (timestamp) i need to select 10 records for each day (there are many more per day) and order them by few columns...
how should that qu
Here is a possible solution, but it will require a little work outside of sql. This is from a live example of a list of movies. All you need to do after this is pull the first 10 movies of the concatenated list.
SELECT Movie_Release_Year, GROUP_CONCAT( Movie_Title
ORDER BY Movie_Title )
FROM movies
GROUP BY Movie_Release_Year
see Group Concat for more details