The source table is:
+----------------------------+
| Col A | Col B | Col C |
+-------+--------------------+
| 100 | 1 | 1/2/2012 |
| 100 | 2 | 1/2/2012 |
| 100 | 3 | 1/2/2012 |
| 100 | 1 | 5/2/2012 |
| 100 | 2 | 5/2/2012 |
| 100 | 3 | 5/2/2012 |
+-------+-------+------------+
Desired result:
+-----------------------------+
| Col A | Col B | Col C |
+-------+--------+------------+
| 100 | 1 | 5/2/2012 |
| 100 | 2 | 5/2/2012 |
| 100 | 3 | 5/2/2012 |
+-------+--------+------------+
How do we obtain it using SQL?
I tried
SELECT * FROM Table A
GROUP BY Col C
HAVING Col C = max(Col C) AND Col A = '100'
But it does not seem to be working.