Skip to content
Advertisement

Unable to pull data for todays date (where statements worked on other tables)

I am trying to pull data for today’s date in the timestamp column only. The ‘where’ statement I am using worked for my other table, but this is still pulling old data. I have been trying a bunch of other methods but I think they may not be working because of the timestamp data and not just the date.

Advertisement

Answer

Use this for your where clause:

or shorter and clearer (but defeats an index on timestamp_est if any):

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement