Subject | Re: [firebird-support] Case - When :Parameter |
---|---|
Author | Helen Borrie |
Post date | 2004-05-31T15:03:06Z |
At 11:50 AM 31/05/2004 -0300, you wrote:
here, not one, so you need a different name for each.
use your single input parameter as a variable.
/heLen
>Hi all,You could; but a parameter isn't a variable. You have three parameters
>
>CanĀ“t I just use a parameter in a When as the code below?
here, not one, so you need a different name for each.
>Update TempPrce100ItensIt would be much more elegant to do this update in a SP. Then you *can*
>
>Set PercDesconto = :PercDesconto,
> ValorUnitario = Case
> When ValorUnitario > 0
> then ValorBruto - ((ValorBruto * :PercDesconto) /
>100)
> Else 0
> End,
> ValorTotal = QuantAtendida *
> Case
> When ValorUnitario > 0
> then ValorBruto - ((ValorBruto * :PercDesconto) / 100)
> else 0
> End
>Where Empresa = :Empresa
> and CodPedido = :CodPedido
> and Status <> 'E'
use your single input parameter as a variable.
/heLen