I have a table with timestamp field call EVENT_TS (so it’s stored as GMT time stamp)
I want to a query that would retrieve the records based on EVENT_TS, and query only returns today’s result.
Here is what record looks at:
EVENT_DESC | EVENT_TS
-----------+--------------------
event1 | 2011-11-14 11:22:00
event2 | 2011-11-11 12:22:00
SO if today is Nov 14, I want it to return only today’s event, which is event1.
Something like this should do the trick (assuming that your system timezone is properly configured):