I have a set of data that looks like this. Is there a way to only grab the max value from today's date without using a where statement?
I was using the script below but it seems to conflict and gets me all the timestamps and the highest value from each timestamp. If someone knows a way to select the max value from today in one/two lines that would be great. Thank you
Select timestamp,
       max(value)
  FROM Table1
 WHERE r.timestamp > ( ( SYSDATE - TO_DATE('01/01/1970 00:00:00',
                                           'MM-DD-YYYY HH24:MI:SS') ) 
                        * 24 * 60 * 60) - 57600; 
 TIMESTAMP      VALUE
---------- ----------
1359574942          1
1359574942         12
1359575012          0
1359575012          0
1359575122          9
1359575212          0
 
     
     
     
    