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


Execute Query on condition — Vertica Forum

Execute Query on condition

I want to run Query B only if Query A fails. Is there any way to do this in vertica. In Teradata we have BTEQ where we ca use If, Else and Level to achieve this.

Comments

  • Navin_CNavin_C Vertica Customer
    Hello Shibashis, Currently the If / Else constructs are not supported in Vertica. We can try to implement the above scenario Create temporary table with query A, Then modify query B with and clause to check if the count of temporary table is greater then one to be executed. Hope this helps

Leave a Comment

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