We're Moving!

The Vertica Forum is moving to a new OpenText Analytics Database (Vertica) Community.

Join us there to post discussion topics, learn about

product releases, share tips, access the blog, and much more.

Create My New Community Account Now


interval or TIMESTAMPADD() — Vertica Forum

interval or TIMESTAMPADD()

Looking to query vertica for records where a timestamp column's value is more than 6 hours older than the current time.  Is there any significant advantage of one of these over the other:

 


 <= (TIMESTAMPADD(HOUR,-6,CURRENT_TIMESTAMP))::timestamptz

 

 <= (current_timestamp - interval '6 hours')

 

 

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file