Redshift: Combining GETDATE and Interval function -
I just want to draw the results corresponding to today's date I am new to Redshift, but I am familiar with MYSQL closest to me It may be 24 hours, but I prefer to use only data from today, I am using:
history_date> = date (GETDATE ()) - Interval '24 hours' Will using the current date function be another option? If any are interested, the entire query is:
You must be enabled.
history_date> = Date (DATE_TRUNC ('day', GETDATE ()))
Comments
Post a Comment