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


Event based function — Vertica Forum

Event based function

davdsdavds Vertica Customer

Here is example vertica site given, to create event id when stock big > $5 based on timestamp
SELECT stock, CONDITIONAL_CHANGE_EVENT(bid> 5)
OVER(ORDER BY ts) FROM Tickstore3;

My question is: this only work for one stock, if have more than one stock in the table, has any like: partition by or group by function to generate each stock event_id?

Answers

Leave a Comment

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