Skip to main content

Execute Query on condition

  • August 24, 2013
  • 1 reply
  • 7 views

Shibashis_Beher
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.

1 reply

Navin_C
Forum|alt.badge.img+2
  • Participating Frequently
  • August 26, 2013
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