Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Sybase > Re: Any equival...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 8 Topic 2389 of 2544
Post > Topic >>

Re: Any equivalent of LIST() function in ADS?

by Manish Negandhi <negandhi.manish@[EMAIL PROTECTED] > Jan 30, 2008 at 06:55 PM

> > Hi Manish,
>
> > it's do***ented under
-http://manuals.sybase.com/onlinebooks/group-pbarc/conn5/sqlug/@[EMAIL
PROTECTED]
>
> > For example, consider a table X with 2 columns Y (numeric) & Z
> > (string) as follows:
>
> > Y | Z
> > --+--
> > 1 | A
> > 1 | B
> > 2 | C
> > 2 | D
> > 2 | E
>
> > then
> > SELECT Y, LIST(Z) FROM X GROUP BY Y
> > results in
>
> > Y | LIST(Z)
> > --+--------
> > 1 | A,B
> > 2 | C,D,E

Hi David,

Looks like what you need is a kind of pivot quries, you need to write
sql or proc to get kind of pivot qurey you are looking for.The below
URL got a good information about concatenating row values in T-SQL


http://www.projectdmx.com/tsql/rowconcatenate.aspx

-Manish Negandhi
[TeamSybase Intern]
 




 8 Posts in Topic:
Any equivalent of LIST() function in ADS?
dtmackenzie <david.mac  2008-01-29 07:11:24 
Re: Any equivalent of LIST() function in ADS?
Manish Negandhi <negan  2008-01-29 09:22:12 
Re: Any equivalent of LIST() function in ADS?
dtmackenzie <david.mac  2008-01-30 01:03:44 
Re: Any equivalent of LIST() function in ADS?
Manish Negandhi <negan  2008-01-30 01:36:45 
Re: Any equivalent of LIST() function in ADS?
dtmackenzie <david.mac  2008-01-30 02:22:15 
Re: Any equivalent of LIST() function in ADS?
jefftyzzer <jefftyzzer  2008-01-30 11:05:08 
Re: Any equivalent of LIST() function in ADS?
Manish Negandhi <negan  2008-01-30 18:55:27 
Re: Any equivalent of LIST() function in ADS?
dtmackenzie <david.mac  2008-01-31 08:04:36 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Oct 15 22:05:05 CDT 2008.