Sample of Table data:
Name of Table: LG_LAB_RESULTS
SAMPLEDATETIME CREATINE ID#
2011-10-02 06:43:00.000 2.5 191613
2011-10-02 16:27:00.000 2.6 191613
2011-10-01 04:15:00.000 1.6 191613
2011-09-30 03:20:00.000 1.8 191613
2011-10-01 19:44:00.000 1.8 191613
2011-10-02 02:41:00.000 2.3 191613
2011-10-02 11:51:00.000 2.7 191613
2011-10-02 19:34:00.000 2.5 191613
2011-09-28 21:45:00.000 0.9 191613
2011-09-29 00:24:00.000 0.9 191613
I need to pull the creatine value based on the max date, in this case it would be 2.5 based on the date of 2011-10-02 19:34:00.000. I cannot figure out the command to do this. Any help would be much appreciated.
Name of Table: LG_LAB_RESULTS
SAMPLEDATETIME CREATINE ID#
2011-10-02 06:43:00.000 2.5 191613
2011-10-02 16:27:00.000 2.6 191613
2011-10-01 04:15:00.000 1.6 191613
2011-09-30 03:20:00.000 1.8 191613
2011-10-01 19:44:00.000 1.8 191613
2011-10-02 02:41:00.000 2.3 191613
2011-10-02 11:51:00.000 2.7 191613
2011-10-02 19:34:00.000 2.5 191613
2011-09-28 21:45:00.000 0.9 191613
2011-09-29 00:24:00.000 0.9 191613
I need to pull the creatine value based on the max date, in this case it would be 2.5 based on the date of 2011-10-02 19:34:00.000. I cannot figure out the command to do this. Any help would be much appreciated.