Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Transpose in SQL
I have used CASE statements embedded in Sybase SQL for many on the fly
recodes.
The CASE methods mentioned earlier or something similar should work with
the newer versions of Sybase.
At least try them out before blindly following Hobarts 'Nice' RTFM
suggestion.
Possibly Hobart needs to upgrade or read some books on advanced SQL himself ;-)
-- John Hobart <Hobart_at_cincinatti.org> wrote in article <3634CDB9.DEE6255B_at_cincinatti.org>...Received on Thu Oct 29 1998 - 00:00:00 CST
> In Sybase, the CASE keyword is for scripting use. It can't be embedded in
an
> SQL Statement.
>
> You can transpose rows to columns and visa versa in a single Sybase SQL
> statement by using Sybase's characteristic functions and add'l functions.
These
> include (SIGN, ABS, ISNULL, SUBSTRING, etc)
>
> How you combine them depends on what you're trying to do. There are
excellent
> books on the topic published by the SQL Forum Press.
>
>
![]() |
![]() |