Problem:
I have a set of data that keeps track of history of communication between clients. So each client has their own activity history (notes, emails..etc). I need to get the latest entry from each client's activity history, where each row is the latest entry from a client's activity. So every row is unique on client id and we can call each activity, "description".
Each activity has a date, and some other jargon like subject, body.
Activity Table
activityid | clientid | subject | body | datemodified
Thanks!