I have a table with the following rows:
id. user_id, type - link
1. 555, image - http://1
2. 555, image - http://2
3. 654, image - http://3
4. 245, video - http://..
5. 555, image - http://..
6. 878, text - http://..
I want to group the type (image) by date, so they show as single row. In this example, the first two images will merge together and output will be like following, also note that if its not same user, then it wont group for that user.
output
1. 555, image - http://1, http://2 ** GROUPED BY DATE, if they are same type and not break type after it.
2. 654, image - http://3
3. 245, video - http://..
4. 555, image - http://..
5. 878, text - http://.
btw im tring to do facebook like news feed, if someone has better idea, then please share.
1 Answer