I'm currently having a table filled with likes and tweets of a certain post sorted on date.
I want to know the query to count the total of likes and tweets sorted by post_id. The result of the example below should be 50 likes and 20 tweets.
The structure of the table is:
post_id date likes tweets
1 2012-06-09 20 10
1 2012-06-10 30 10
SUM(likes), SUM(tweets)GROUP BY post_id