Subject | RE: [firebird-support] candidate for case statement in SP |
---|---|
Author | Leyne, Sean |
Post date | 2004-06-04T00:07:08Z |
Alan,
Sean
> The CASE statement itself works in an Sql editor window as per:-FYI, do you realize that you're not handling the case where tonnes = 20?
> select
> weigh_code,
> tonnes,
> case when (tonnes<20) then 'light' when (tonnes>20) then 'heavy' end
> from weigh
> 345 19.78 light
> 378 22.56 heavy
> ...
Sean