If I have these dates in my startdate column:
2006-08-02 16:51:59.500
2006-08-02 19:58:06.507
2006-08-02 15:26:26.313
2006-08-02 15:31:24.423
2006-08-22 12:35:46.920
and I want to get the maximum date: 2006-08-02 19:58:06.507. How would I get that?
SELECT MAX(StartDate)
FROM tblTest
gets me 2006-08-22 12:35:46.920.
2006-08-02 16:51:59.500
2006-08-02 19:58:06.507
2006-08-02 15:26:26.313
2006-08-02 15:31:24.423
2006-08-22 12:35:46.920
and I want to get the maximum date: 2006-08-02 19:58:06.507. How would I get that?
SELECT MAX(StartDate)
FROM tblTest
gets me 2006-08-22 12:35:46.920.