I have data like this (col2 is of type Date)
| col1 | col2 |
------------------------------
| 1 | 10/17/2007 07:19:07 |
| 1 | 10/17/2007 07:18:56 |
| 1 | 31/12/2070 |
| 2 | 11/28/2008 3:23:14 PM |
| 2 | 31/12/2070 |
How to select rows that col1 are different and col2 is the largest. Like this
| col1 | col2 |
------------------------------
| 1 | 31/12/2070 |
| 2 | 31/12/2070 |
source share