Subject | RE: [firebird-support] candidate for case statement in SP |
---|---|
Author | Alan Davies |
Post date | 2004-06-04T23:46:06Z |
Sean
Yes
that was just a sample showing that the CASE tatement itself works. The
real problem was in the SP
Alan
Tel: +44 (0)1926 842069
Fax: +44 (0)1926 843755
Yes
that was just a sample showing that the CASE tatement itself works. The
real problem was in the SP
Alan
> Alan,20?
>
> > The CASE statement itself works in an Sql editor window as per:-
> > 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
> > ...
>
> FYI, do you realize that you're not handling the case where tonnes =
>Alan J Davies
>
> Sean
>
>
>
> ------------------------ Yahoo! Groups Sponsor --------------------~--
>
> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
> Now with Pop-Up Blocker. Get it for free!
> http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/67folB/TM
> --------------------------------------------------------------------~-
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
Tel: +44 (0)1926 842069
Fax: +44 (0)1926 843755