I have this data that should output to corresponding number of social media that he interacted with.
There's 4 interaction which is fblike_point, fbshare_point, tweet_point, and follow_point
So let's say, I've interacted with fblike_point and tweet_point judging from the data below.

So what I want to do is, it should output 2 times since I've interacted with fblike_point and tweet_point.
Output:
2013-05-14 | fblike_point
2013-05-14 | tweet_point
If I interacted 4 times, it should output 4 times with the corresponding social media interaction that he made.
Well I can manage to do this stuff but, it was like redundancy, for example I'm using a mysql query in PHP for selecting data:
SELECT date_participated, fblike_point FROM table WHERE fblike_point = 1
SELECT date_participated, fbshare_point FROM table WHERE fbshare_point = 1
SELECT date_participated, tweet_point FROM table WHERE tweet_point = 1
SELECT date_participated, follow_point FROM table WHERE follow_point = 1
So is there any other way to have a short method or something?
SELECT date_participated, SUM(fblike_point) AS fblike_point, SUM(fbshare_point) AS fbshare_point, SUM(tweet_point) AS tweet_point, SUM(follow_point) AS follow_point FROM tickets GROUP BY date_participatedwith this query you will get all interaction a given user had per day and you can easily make aecho $row['date_participated'] . '|' . $row['fblike_point'] . "\n";for each of it.GROUP BY date_participatedas I forgot you have time on your field so you need to addGROUP BY DATE(date_participated)so it group's by the dates only