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.


  • 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
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file