Re: reformat the output
From: joe (pearl_77_at_hotmail.com)
Date: 03/10/04
- Next message: Erin Peterson: "Re: Error Message Dropping Foreign Key"
- Previous message: Louis Davidson: "Re: Sharing Tables between Databases"
- In reply to: joe: "reformat the output"
- Next in thread: anonymous_at_discussions.microsoft.com: "Re: reformat the output"
- Reply: anonymous_at_discussions.microsoft.com: "Re: reformat the output"
- Reply: keene: "Re: reformat the output"
- Reply: Delbert Glass: "Re: reformat the output"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 10 Mar 2004 12:21:12 -0500
Sorry My bad,
I made a little mistake,
Original output:
year
------
2004
2005
2003
2008
2006
2007
I really want to convert to following format:
Desired Output:
year
--------
2003/2004
2005/2006
2007/2008
Note: if there is no 2008 year,
then output will be
year
--------
2003/2004
2005/2006
2007
"joe" <pearl_77@hotmail.com> wrote in message
news:uDEJAEsBEHA.3184@TK2MSFTNGP09.phx.gbl...
> Orginal output
>
> year
> ------
> 2004
> 2005
> 2003
> 2008
> 2006
> 2007
>
>
> how do I convert to such an output :
>
> c1 c2 c3 c4
> ---------- --------- -------------- ------------
> 2003/2004 2004/2005 2006/2007 2007/2008
>
>
> Note: let's say we don't have 2008 year,
>
> then c4 will be 2007 , not 2007/2008
>
>
>
- Next message: Erin Peterson: "Re: Error Message Dropping Foreign Key"
- Previous message: Louis Davidson: "Re: Sharing Tables between Databases"
- In reply to: joe: "reformat the output"
- Next in thread: anonymous_at_discussions.microsoft.com: "Re: reformat the output"
- Reply: anonymous_at_discussions.microsoft.com: "Re: reformat the output"
- Reply: keene: "Re: reformat the output"
- Reply: Delbert Glass: "Re: reformat the output"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|