For those who helped me along the way with this twitter clone, thanks! With your help, I managed to get the majority to work, and finally move on to the last steps of the followers function.
Now I have a data set with the following fields: username, tweet, date
Sample data might look like this:
Username Tweet Date
kenny hi! 2011-10-07 19:07:00
stan hello 2011-10-05 18:07:00
kenny looks like rain 2011-10-05 17:07:00
stan hello 2011-10-05 14:07:00
cartman authoritay! 2010-10-05 14:07:00
And I struggled with an SQL statement that would create a dataset in which each user appears only once with his last tweet. So, based on the above, something similar to this:
Username Tweet Date
kenny hi! 2011-10-07 19:07:00
stan hello 2011-10-05 18:07:00
cartman authoritay! 2010-10-05 14:07:00
I searched for search queries on Google searches and tried the options COUNT, DISTINCT, MAX, but to no avail. Any help would be greatly appreciated! Thank!