0
I am trying to make a modification in the Query without destroying a logic already made.
Original Query:
IF Pcoluman = 'aceito' THEN
if (v_respon_alg = 'Y')
OR (v_respon_las = 'Y')
OR (v_respon_nye = 'Y')
OR (v_respon_vav = 'Y') THEN
package_thea.validador('Nova York', 433);
package_thea.validador('Boston', 574);
package_thea.validador('Nova Jersey', 397);
ELSE
package_thea.validador('Sem Registro Cidade', 000);
END IF;
What I need to do is put a case when in the first validator where when v_res_pn_vav = 'Y' it replaces for "Seattle".
Since you’re making a mistake, would that work? He says that ";" dps is missing the END, then falls in the ELSE with error, I’m not getting it right.
Follows QUERY with modification:
IF Pcoluman = 'aceito' THEN
if (v_respon_alg = 'Y')
OR (v_respon_las = 'Y')
OR (v_respon_nye = 'Y')
OR (v_respon_vav = 'Y') THEN
CASE WHEN (v_respon_vav = 'Y') THEN package_thea.validador('Seattle', 8974) ELSE package_thea.validador('Nova York', 433); END
package_thea.validador('Boston', 574);
package_thea.validador('Nova Jersey', 397);
ELSE
package_thea.validador('Sem Registro Cidade', 000);
END IF;
What am I missing?
If anyone can validate that answer I’d be grateful
– LordDual