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 > Oracle Miscellaneous > Re: splitting a...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 6 Topic 6871 of 7280
Post > Topic >>

Re: splitting a string into columns

by joel garry <joel-garry@[EMAIL PROTECTED] > May 2, 2008 at 01:28 PM

On May 2, 8:18=A0am, kes <abi...@[EMAIL PROTECTED]
> wrote:
> > > Alex
>
> > Why does this require a stored procedure and where's the pivot?
> > --
>
> Thank you for following up.
>
> The csv1 and csv2 columns are a format for RNA sequences that have
> been modified. This is why these CSV values are stored in the
> database, it's usually been sufficient for our needs over the past 2
> years. Now people want to see the different individual values.
>
> e.g., xA,yG,U,G,xG
>
> would be stored as value csv1, now people would like to see, is there
> a correlation between U in the third location and this RNA sequence's
> efficacy.
>
> the reason for the pivot is I could use level in a select statement to
> select
> 1, xA
> 2, yG
> 3, U
> 4, G
> 5, xG
>
> then pivot it to
> id, csv1_1, csv1_2, csv1_3, csv1_4, csv1_5
> 3, xA, yG, U, G, xG
>
> using dynamic SQL and decode.
>
> I was just hoping for a more elegant solution.

You are changing the attributes defined within the relation, so
normally you would create a new table normalized to your new
definition.  Whether that is reasonable for your situation depends on
how much data you have, the updating it goes through, and what else
you want to do with it.  There might be some other DW type
considerations, too.

jg
--
@[EMAIL PROTECTED]
 is bogus.
Depraved hackers! 
http://www.signonsandiego.com/uniontrib/20080502/news_1m2=
rbhack.html
 




 6 Posts in Topic:
splitting a string into columns
kes <abirch@[EMAIL PRO  2008-05-01 16:55:48 
Re: splitting a string into columns
DA Morgan <damorgan@[E  2008-05-01 18:21:34 
Re: splitting a string into columns
Ed Prochak <edprochak@  2008-05-02 05:19:04 
Re: splitting a string into columns
Walt <walt_askier@[EMA  2008-05-02 09:55:46 
Re: splitting a string into columns
kes <abirch@[EMAIL PRO  2008-05-02 08:18:02 
Re: splitting a string into columns
joel garry <joel-garry  2008-05-02 13:28:03 

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 Dec 3 0:20:16 CST 2008.