select ESDSTotal from DEMANDSPREAD WHERE TIMESTAMP=(SELECT MAX(TIMESTAMP)FROM DEMANDSPREAD) to (SELECT MAX(TIMESTAMP-00:01:00)FROM DEMANDSPREAD)
ESDStotal(int) and Timestamp(datetime) are in my table
thats what i am trying so far to get the time at least