I am trying to build a string that can help me with tracking of employees if they have attended last course or not. If they have attended then it will return me date of course attended. But if an employee could attend the course then I get the same reason in return. But as these course are scheduled all month and an employee will be attending this more than once. Then I have a problem. As I have to pre schedule everyone for all week/month therefore I don't get last attendance if there is an upcoming event but not attended yet.