This is my sql syntax
select DepartmentId, max(fromdate) from iwof.DateSnippet group by DepartmentId
and this is the result that I get
1 2013-09-09 14:53:52.813
2 2014-02-07 14:37:21.740
3 2014-02-07 14:37:21.737
4 2014-02-07 14:37:21.740
5 2014-02-07 14:37:21.743
6 2014-02-07 14:37:21.743