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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -