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
If you are working with MySQL, and the column is of type timestamp. You need to convert it to Date and then compare it with the date you want to compare with.
SELECT * FROM tablename tName where Date(timestampFieldName) = Date('2009-07-08') limit 0,10
SELECT * FROM tablename tName
where
Date(timestampFieldName) = Date('2009-07-08')
limit 0,10