Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Need help/hint creating a quiry

Need help/hint creating a quiry

From: Gene Gurevich <g_u_r_e_v_i_c_h_at_yahoo.com>
Date: Mon, 25 Jun 2001 15:03:41 -0700
Message-ID: <F001.003376D0.20010625150551@fatcity.com>

Hi all

Lets say I have a table:

f1 char(10)
f2 char(2)
f3 number

where f1 is a name, f2 is a code and f3 is a number.

What I want to produce is a report that looks something like this:

F1 F2 IS A F2 is B F2 IS C .... F2 is X

f1    f3        f3       f3
f1    f3        f3       f3 (different f1 )
etc.

So I want to transpose the table. I haven't done that before. Is there a way to do this assuming that the number of distinct values in f2 can be changed at any time (and therefore the number of columns in my report can vary)?

thanks for any help




Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Gene Gurevich
  INET: g_u_r_e_v_i_c_h_at_yahoo.com
Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Mon Jun 25 2001 - 17:03:41 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US