I have made a search but couldn’t find a solution which works for me.
I just wonder how Facebook or Linkedin manages to handle same type activity with one sentence?
I mean, if you store every activity with different IDs in an Activity Table, how can you list them as “Member_a and 15 more people changed their photos”
I’m trying to make a social activity wall for my web-site, it’s not that big but I just wanted to know the logic on this situation.
For example, when first page loads, I make an Ajax call and listing 0-10 records and if user scrolls down, page makes another ajax call which lists 11-20 records.
Now; if I try to combine same type of activity after sql select query with using if else, if this 10 records are the same, the user will only see 1 item. I hope I could explain what I want to say 🙂
So, I need a solution which makes this query in SQL Statement.
I’m not asking from you to write a query for me, I just want to know the logic.
Here is a screenshot what I want to achieve:


You see, they are actually different stored data but they combined it and made it as a 1 item network update.
By the way, I’m using C# and SQL Server 2008.
for example:
did I understand your question right?