In my posts table, it saves timestamp for each post record.
posts
What query can group posts by day, using this timestamp column?
How about this? Using the DATE function:
DATE
SELECT DATE(FROM_UNIXTIME(MyTimestamp)) AS ForDate, COUNT(*) AS NumPosts FROM MyPostsTable GROUP BY DATE(FROM_UNIXTIME(MyTimestamp)) ORDER BY ForDate
This will show you the number of posts on each date that the table has data for.
1.4m articles
1.4m replys
5 comments
57.0k users