Columns To Rows Transpose

Need some help to display the output data in the below format,Pls help out...
Eg:
OV:Old Value
NV:New Value
ID OV NV
1 -- 100
1 100 200
1 200 300
OUTPUT:
ID VALUES
1 100 200 300

Hi,
i think this link helpful to you
http://www.club-oracle.com/forums/unpivoting-column-to-row-conversion-techniques-sql-t145/

Similar Messages

  • Columns to row transpose

    Hi there,
    Context:
    I have to run a job weekly which would load (update/insert) DestTable with data from SourceTable, before i load the data into DestTable i have to transform the data which includes transpose Columns to rows based on a composite key and calculate to derive few columns. I have written this job in .net exe but it is taking huge amount of time to finish the job, like it took 5hours to process 1.9 million records.
    SourceTable has a similar structure
    ColName
    Item_id
    sales
    Item_desc
    profit
    state_code
    DestTable has a similar structure
    ColName
    Item_id
    Sales_for_state1
    sales_for_state2
    sales_for_state3
    sales_for_state4
    profit
    profit_margin --this is calculated based on the above columns
    the above is just a glimpse of the tables' structure that i have to process.
    Resolution:
    I would like to rewrite the .net exe code into a PL/SQL. can you help me write a query that would transform the columns to rows and calculate and then insert them in to the DestTable.
    Thanks

    As far as I understand your structure, it's not a pivot-like thing. So, probably, you can make a transformation of the following kind. And then directly upload to the target_table:
    select item_id,
              sum(decode(state_code,'CODEOFSTATE1',sales, null)) s4state1,
              sum(decode(state_code,'CODEOFSTATE2',sales, null)) s4state2,
              sum(decode(state_code,'CODEOFSTATE3',sales, null)) s4state3,
              sum(decode(state_code,'CODEOFSTATE4',sales, null)) s4state4,
              sum(profit)
    from source_table
    group by item_id

  • Transpose columns and rows in numbers

    I need to transpose columns and rows in Numbers and I do not want to write script to do it.  Is there an easier way?

    Give me a proper transpose and I will uninstall Excel and never look back.
    Ok, here's a proper transpose, that can be placed in an Automator Service so it becomes a simple menu pick as below (and can also be assigned a keyboard shortcut).
    To use it (this is slightly different from Excel) you select the range you want to transpose, choose Copy Transpose, click a destination cell in an existing table in the current document or another document, and command-v (Edit > Paste) or option-shift-command-v (Edit > Paste and Match Style).
    The one-time setup is as follows.  In Automator choose File > New > Service,  drag a Run AppleScript action from the left into the right pane, choose 'No Input' for 'Services receives selected' and 'Numbers' for 'in'. Then paste the following into the Run AppleScript action, replacing all text already there by default:
    --Transpose - select range, run, paste transposed values where wanted
    try
              tell application "Numbers" to tell front document to tell active sheet
                        set selected_table to first table whose class of selection range is range
                        tell selected_table
                                  set my_selection to the selection range
                                  set first_col to address of first column of my_selection
                                  set last_col to address of last column of my_selection
                                  set first_row to address of first row of my_selection
                                  set last_row to address of last row of my_selection
                                  set str to ""
                                  repeat with i from first_col to last_col
                                            repeat with j from first_row to last_row
                                                      set str to str & (value of cell j of column i of selected_table) & tab
                                            end repeat
                                            set str to str & return -- add line return after row
                                  end repeat
                        end tell
              end tell
      set the clipboard to str
              display notification "Ready to paste transposed values" with title "Numbers"
    on error
              display dialog "Select a range first and then try again"
    end try
    --end script
    Hit the compile "hammer" and the script should indent properly. Then save the service with the name you want to appear in your menu, and it will thereafter be available via the Services menu (and keyboard shortcut, if you set one up in System Preferences > Keyboard > Shortcuts > Services).
    That's it. Less then five minutes' one-time set-up work and you've got a menu pick for a transpose functionality that is as convenient as Excel's.
    SG

  • How to transpose columns to rows in ODI

    Hi,
    I am trying to transpose Columns to rows along with Headers. For instance if i have
    Account Name | Assigned To | Lead Source | Currency | Onsite_April |Offisite_April2 | FCST AMC LIC April
    | | | | | |
    Microsoft | Mark | Channel1 | INR | 1000 | 2000 | 3000
    Then i need in the below way
    Account Name | Assigned To | Lead Source | Currency | Month | Amount
    | | | | |
    Microsoft | Mark | Channel1 | INR | Onsite_April | 1000
    Microsoft | Mark | Channel1 | INR | Offisite_April2 | 2000
    Microsoft | Mark | Channel1 | INR | FCST AMC LIC April | 3000
    Is there any specific function where i can achieve this?
    More over i need break up Month column into two i.e Onsite_April will be Onsite (in one column) April (in another column).

    Hi
    here is what i got by using the above KM
    create table cad_temp_1(item_id number, location_id number, sales_date_ud1 varchar2(100), qty_ud2 number);
    create table cad_temp_2(item_id number, location_id number, D01012010 number, D01022010 number);
    insert into cad_temp_2 values(1,1,200,300);
    commit;
    Source in interface is : cad_temp_2
    Target is: cad_temp_1
    Mapping is
    Item_id - Item_id execute on: CAD_TEMP_2 (Source selected) Update - Insert and Update checked
    Location_id - Location_id execute on: CAD_TEMP_2 (Source selected) Update - Insert and Update checked
    sales_date_ud1 - :NA execute on: <null> (Target selected) Update - Insert, Update, UD1 selected
    qty_ud2 - :NA execute on : <null> (Target selected) Update - Insert, Update, UD2 selected.
    Execute the interface
    It works.
    Thanks
    Bhaskar

  • Transposing columns to rows in excel through ODI

    Hi all,
    We are trying to transpose Columns to rows along with Headers considering excel as source and oracle table as target
    For example we are having metadata and data in Excel sheet like below
    Metadata:- A,B,TC1,TD1,L1,U1,TC2,TD2,L2,U2,TC3,TD3,L3,U3
    Data:-        X,Y,1,2,3,4,5,6,7,8,9,10,11,12
                     M,N,a,b,c,d,e,f,g,h,i,j,k,l
    Then we need in the below way in oracle table
    A,B,TC1,TD1,L1,U1
    X,Y,1,2,3,4
    X,Y,5,6,7,8
    X,Y,9,10,11,12
    M,N,a,b,c,d
    M,N,e,f,g,h
    M,N,i,j,k,l
    Is there any process to achieve this?
    If so Please let us know
    Thanks in advance

    Hi SH,
    Thanks for your reply
    We already tried http://s3.amazonaws.com/Ora/KM_IKM_Pivot.zip by following the link https://community.oracle.com/thread/904535?tstart=0
    But unfortunately we got the same error which is mentioned in that link
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 35, in ?
    java.sql.SQLException: Invalid column name
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
    I am newbie to odi - if possible can you please guide me how to do transpose in odi by considering excel as source and oracle as target
    Thanks

  • Transpose columns to rows

    HI All,
    I want to transpose columns to rows in my reports. I tried through Pivot Table and i was able to do that, but columns name are not appearing in the left.
    Plz help me out how to do that with column name/
    Can we do the same with measure also???
    Thanks

    All, thanks for the information.
    I have a similar requirement as being discussed here. However, I do not have any measures in my report. It is a plain request which fetches data in three columns A, B and C (and variable number of rows depending on the data available).
    Can I still use pivot table to transpose this data such that the resultant display would have three rows always and variable number of columns, with the first column containing the header A, B and C ? If yes, how do I go about it? Else, is there any other approach?
    Thanks again
    I
    Edited by: user635102 on Sep 18, 2008 12:31 PM

  • Transpose columns into rows

    hi ,
    i need to transpose columns into rows ,
    i know i can use the UNION ALL but my num of columns will most likely not be fixed so how can i do that ?
    pls advise

    This is from one of the forms link,, i reallyy dont know the link, but i guess this is "adrains" code
    SQL> WITH ilv AS (
      2      SELECT str || ','                                   AS str
      3      ,     (LENGTH(str) - LENGTH(REPLACE(str, ','))) + 1 AS no_of_elements
      4      FROM   t
      5      )
      6  SELECT RTRIM(str, ',')                              AS original_string
      7  ,      SUBSTR(str, start_pos, (next_pos-start_pos)) AS single_element
      8  ,      element_no
      9  FROM  (
    10         SELECT ilv.str
    11         ,      nt.column_value AS element_no
    12         ,      INSTR(
    13                   ilv.str,
    14                   ',',
    15                   DECODE(nt.column_value, 1, 0, 1),
    16                   DECODE(nt.column_value, 1, 1, nt.column_value-1)) + 1 AS start_pos
    17         ,      INSTR(
    18                   ilv.str,
    19                   ',',
    20                   1,
    21                   DECODE(nt.column_value, 1, 1, nt.column_value)) AS next_pos
    22         FROM   ilv
    23         ,      TABLE(
    24                   CAST(
    25                      MULTISET(
    26                         SELECT ROWNUM FROM dual CONNECT BY ROWNUM < ilv.no_of_elements
    27                         ) AS number_ntt )) nt
    28        );
    ORIGINAL_STRING                 SINGLE_ELEMENT  ELEMENT_NO
    X,Y,Z                           X                        1
    X,Y,Z                           Y                        2
    X,Y,Z                           Z                        3
    XXX,Y,ZZ,AAAAA,B,CCC,D,E,F,GGG  XXX                      1
    XXX,Y,ZZ,AAAAA,B,CCC,D,E,F,GGG  Y                        2
    XXX,Y,ZZ,AAAAA,B,CCC,D,E,F,GGG  ZZ                       3
    XXX,Y,ZZ,AAAAA,B,CCC,D,E,F,GGG  AAAAA                    4
    XXX,Y,ZZ,AAAAA,B,CCC,D,E,F,GGG  B                        5
    XXX,Y,ZZ,AAAAA,B,CCC,D,E,F,GGG  CCC                      6
    XXX,Y,ZZ,AAAAA,B,CCC,D,E,F,GGG  D                        7
    XXX,Y,ZZ,AAAAA,B,CCC,D,E,F,GGG  E                        8
    XXX,Y,ZZ,AAAAA,B,CCC,D,E,F,GGG  F                        9
    XXX,Y,ZZ,AAAAA,B,CCC,D,E,F,GGG  GGG                     10
    13 rows selected.
    Note that the above SQL performs the following steps:
        * determines how many elements are in each string (WITH clause);
        * for each string, generates a collection of n elements (TABLE expression), where n is the derived number of elements in the string. Note in particular the use of "less than" in the "CONNECT BY ROWNUM < ilv.no_of_elements" on line 26. In all versions other than 10.1.x, this will need to be "CONNECT BY ROWNUM <= ilv.no_of_elements" (i.e. "less than or equal to"). There is an unusual bug with this row-generation technique in 10.1 that generates an additional row from the CONNECT BY;
        * uses the generated rows in a Cartesian Product with the original data to generate n rows per string, based on the above definition of n;
        * calculates the start and end position of each element in each string (INSTR); and
        * cuts each element from each string (SUBSTR).

  • Transpose of columns to rows (unpivoting) and not rows to columns

    Hi,
    I am right now using oracle 10g. I HAVE the following specification. Here I specified only 5 columns.
    We have upto 200 columns.
    TRANS_ID      PORTFILIO_NUM     TICKER          PRICE     NUM_SHARES ........................................
    2     100     MO      25.00     100 ........................................
    3     100     MCD          31.50     100 ........................................
    I want the above to be transformed into the following output .
    TRANS_ID TYPE VALUE
    2 PORTFILIO_NUM 100
    2 TICKER MO
    2 PRICE 25.00
    2 NUM_SHARES 100.
    I don't want to use case/decode function by hard coding the 200 columns.
    Can anyone provide me a good way (mostly dynamic way) of doing this?
    I searched the whole forum and also other forums. Everywhere I could find
    rows to columns / columns to rows where the column names have been hardcoded.
    I want a dynamic way of doing it. Let me know if u need any other inputs.
    DDL :
    CREATE TABLE PORT_TRANS
    TRANS_ID VARCHAR2(100 BYTE),
    PORTFILIO_NUM VARCHAR2(100 BYTE),
    TICKER VARCHAR2(100 BYTE),
    PRICE VARCHAR2(100 BYTE),
    NUM_SHARES VARCHAR2(100 BYTE)
    INSERT INTO PORT_TRANS (TRANS_ID,PORTFILIO_NUM,TICKER,PRICE,NUM_SHARES)
    VALUES('2','100','MO','25.00','100');
    INSERT INTO PORT_TRANS (TRANS_ID,PORTFILIO_NUM,TICKER,PRICE,NUM_SHARES)
    VALUES('3,'100','MCD','31.50','100');
    COMMIT;
    Thanks,
    Priya.

    Hi,
    What you're trying to write is something like this:
    WITH     cntr     AS
         SELECT     LEVEL     AS n
         FROM     dual
         CONNECT BY     LEVEL     <= 4
    SELECT     p.trans_id
    ,     CASE
              WHEN  c.n     <= 2
              THEN
                   CASE     c.n
                        WHEN 1     THEN 'PORTFILIO_NUM'
                        WHEN 2     THEN 'TICKER'
                   END
              ELSE
                   CASE     c.n
                        WHEN 3     THEN 'PRICE'
                        WHEN 4     THEN 'NUM_SHARES'
                   END
         END     AS type
    ,     CASE
              WHEN  c.n     <= 2
              THEN
                   CASE     c.n
                        WHEN 1     THEN p.PORTFILIO_NUM
                        WHEN 2     THEN p.TICKER
                   END
              ELSE
                   CASE     c.n
                        WHEN 3     THEN p.PRICE
                        WHEN 4     THEN p.NUM_SHARES
                   END
         END     AS value
    FROM          port_trans     p
    CROSS JOIN     cntr          c
    ORDER BY     p.trans_id
    ,          c.n
    ;I wrote this as if CASE could only handle 2 choices, rather than 128, just to show how to nest CASE expressions.
    What you have to do is write the CASE expressions, based on the contents of all_tab_columns.
    In your sample data, all of the columns are VARCHAR2 (another design flaw). If you have any columns of other types, use TO_CHAR to convert them to VARCHAR2; that is, the final code to be run will have something like:
    ...                    WHEN 4     THEN TO_CHAR (p.NUM_SHARES)If I had to do this, I might run several queries on all_tab_columns, each producing one script, containing just a fragment of the query.
    To run the whole thing, I would hard-code a main query like this
    WITH     cntr     AS
         SELECT     LEVEL     AS n
         FROM     dual
         CONNECT BY     LEVEL     <=
                        @num_columns.sql
    SELECT     p.trans_id
    ,     CASE
              @type.sql
         END     AS type
    ,     CASE
              @value.sql
         END     AS value
    FROM          port_trans     p
    CROSS JOIN     cntr          c
    ORDER BY     p.trans_id
    ,          c.n
    ;As with any coidng, start small and take baby steps. Maybe the first step would just be to write num_columns.sql, which just contains the number 4. When you can do that, hard-code the CONNECT BY query, calling num_columns.sql.
    Good luck!

  • Transpose columns and rows / Switch columns and rows

    Hello,
    Is it possible to interchange columns and rows in order to create a left-to-right scrolling table instead of a top-to-bottom scrolling one?
    In detail:
    I have this:
          | col 1 | col 2 | col 3
    row 1 |       |       |
    row 2 |       |       |
    row 3 |       |       |
    ...   |       |       |
    ...and want to have this:
          | row 1 | row 2 | row 3 | ...
    col 1 |       |       |       |
    col 2 |       |       |       |
    col 3 |       |       |       |
    Does anyone know if this is possible with the standard table or the ALV?
    Thanks in advance & Kind regards,
    Robert

    Hi,
    So there is no easy solution by just setting a flag in the ALV config!? ...too bad!
    As for the dynamic creation:
    Would there be an issue with different data types in one "column" (former row)? As a matter of fact there probably will be a mix of character, numbers, ...
    Regards,
    Robert

  • In Numbers, I want to make 3 rows 50 columns into 3 columns 50 rows.

    In just a simple Numbers 09 spreadsheet, no charts, I'm trying to convert the rows and columns to columns and rows to more easily work with the information without scrolling across the page.  I would be able to see the information on one page and more easily print a one page documents.  I can't seem to figure it out; and the Help option has not been helpful unless you are working with a chart.  I don't want a chart, I want to work with the spreadsheet and cells.
    Any ideas!  I'm sure it is operator error, but it's something I'm not familiar with.  I'm new to Apple and definitely new to numbers.
    Thanks,
    Sandra

    You may go to my iDisk (address below)
    download :
    For_iWork:iWork '09:for_Numbers09:Transpose.zip
    Expand the archive
    You will get two scripts.
    One which transpose the values
    One which transpose keeping formulas if the original table is a living one.
    Yvan KOENIG (VALLAURIS, France) samedi 8 octobre 2011 09:29:28
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • Reformatting Table- convert columns to rows

    Hi,
    I have data tables that I would like to reformat so that the columns become rows and vice versa, if that is possible.
    I've been keyword searching for hours, but unfortunately I am unfamiliar with the terminology... Sorry if this is really stupid; I'd appreciate any help! Thanks!

    Bev Kehoe wrote:
    After calling Apple Tech support & having the tech head tell me 'transpose' only works on charts, we found you!
    One more techie which doen't know what he respond about. The transpose function is not as efficient as we where hoping but it works.
    Alas, the formulas are so weird that I thougt that the "transpose_live script is a better tool.
    I was not able to find a 'menu' script within numbers but opened it on its own and it worked. Is there a way to have it be a choice within numbers itself?
    The "Script menu" is a menu of its own.
    If you apply what I described at the beginning of the script, you will have an area dedicated to Numbers.
    We may organize the menu two ways:
    Yvan KOENIG (from FRANCE lundi 29 juin 2009 16:57:49)

  • Swapping of columns and rows

    Hi all,
    I'm just filling a Numbers table from a webseite per copy & paste.
    Can I swap columns and rows in Numbers like in Quantrix?
    Axel

    Here is a new transpose script.
    This one inserts formulas grabbing the contents of the original block so the transposed one reflects the changes which may be done in the original block.
    It's a bit long but I post it here because it introduce some handlers allowing us to acess some interesting features.
    --[SCRIPT transposeLive]
    Enregistrer le script en tant qu'Application ou Progiciel : transposeLive].app
    déplacer l'application créée dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Merci à Scott Lindsey & Ed.Stockly du forum [email protected]
    qui m'ont aidé à construire le code récupérant le bloc sélectionné.
    Sélectionnez le bloc de cellules à transposer
    menu Scripts > Numbers > transposeLive (exécute le script une première fois)
    Le script récupère les informations utiles sur le bloc à transposer
    Sélectionner la première cellule du bloc destination
    (elle ne peut être dans le bloc source)
    menu Scripts > Numbers > transposeLive (exécute le script une deuxième fois)
    Il insère des formules récupérant le contenu du bloc transposé.
    Les modifications au contenu du bloc source seront répercutées.
    +++++++
    Save the script as an Application or an Application Bundle: transposeLive].app
    Move the newly created application into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    Thanks to Scott Lindsey & Ed.Stockly from [email protected]
    which helped me to build the code grabbing the selected range.
    Select a group of cells.
    menu Scripts > Numbers > transposeLive (Run the script once.)
    It grabs infos about the selection
    select the first cell of the destination
    (can't be in the source range)
    menu Scripts > Numbers > transposeLive (Run the script one more time.
    It will insert formulas grabbing the transposed range.
    Changes in the source one will be reflected.
    Yvan KOENIG (Vallauris, FRANCE)
    19 janvier 2009
    property theApp : "Numbers"
    property sourceCell : missing value
    property sourceTable : missing value
    property sourceSheet : missing value
    property nbRows : missing value
    property nbColumns : missing value
    --=====
    on run
    set firstPass to sourceCell = missing value
    if firstPass then (*
    Here we are in the first pass.
    We grab infos about the source range *)
    set {rName, sourceTable, sourceSheet, dName} to my getSelection()
    if rName is missing value then error "No selected cells"
    set twoNames to my decoupe(rName, ":")
    if sourceTable does not start with "'" then set sourceTable to "'" & sourceTable & "'"
    if sourceSheet does not start with "'" then set sourceSheet to "'" & sourceSheet & "'"
    set sourceCell to item 1 of twoNames
    set {colNum1, rowNum1} to my decipher(item 1 of twoNames)
    if item 2 of twoNames = item 1 of twoNames then
    set {colNum2, rowNum2} to {colNum1, rowNum1}
    else
    set {colNum2, rowNum2} to my decipher(item 2 of twoNames)
    end if
    set nbRows to rowNum2 + 1 - rowNum1
    set nbColumns to colNum2 + 1 - colNum1
    else --**************
    Here we are in the second pass
    We insert formulas grabbing the transposed cells *)
    set deci to character 2 of (0.5 as text)
    if deci is "." then
    set delim to ","
    else
    set delim to ";"
    end if
    set p2lproj to my getLproj(theApp)
    set OFFSET_loc to my getLocalizedFuncName(p2lproj, "OFFSET")
    --set ADDRESS_loc to my getLocalizedFuncName(p2lproj, "ADDRESS")
    --set INDIRECT_loc to my getLocalizedFuncName(p2lproj, "INDIRECT")
    set {rName, tName, sName, dName} to my getSelection()
    if rName is missing value then error "No selected cells"
    set twoNames to my decoupe(rName, ":")
    set {colNum1, rowNum1} to my decipher(item 1 of twoNames)
    if item 2 of twoNames = item 1 of twoNames then
    set {colNum2, rowNum2} to {colNum1, rowNum1}
    else
    set {colNum2, rowNum2} to my decipher(item 2 of twoNames)
    end if
    (* Here we know the starting point of the destination area. *)
    tell application theApp
    activate
    tell document dName to tell sheet sName to tell table tName
    set rowsCible to (get row count)
    set rowsNeeded to rowsCible - 1 + nbColumns
    if rowsNeeded > rowsCible then
    repeat (rowsNeeded - rowsCible) times
    add row below row rowsCible
    end repeat
    end if -- rowsNeeded
    set columnsCible to (get column count)
    set columnsNeeded to columnsCible - 1 + nbRows
    if columnsNeeded > columnsCible then
    repeat (columnsNeeded - columnsCible) times
    add column after column columnsCible
    end repeat
    end if -- columnsNeeded
    repeat with i from 1 to nbRows
    repeat with j from 1 to nbColumns
    set value of cell (colNum1 - 1 + i) of row (rowNum1 - 1 + j) to "=" & OFFSET_loc & "(" & sourceSheet & " :: " & sourceTable & " :: " & sourceCell & delim & i - 1 & delim & j - 1 & ")"
    end repeat
    end repeat
    end tell -- table of sheet of document
    end tell -- Application
    set sourceCell to missing value
    set sourceTable to missing value
    set sourceSheet to missing value
    set nbRows to missing value
    set nbColumns to missing value
    end if
    end run
    --=====
    on getSelection()
    local mySelectedRanges, sheetRanges, thisRange, _, myRange, myTable, mySheet, myDoc, mySelection
    tell application theApp
    activate
    tell document 1
    set mySelectedRanges to selection range of every table of every sheet whose it is not missing value
    repeat with sheetRanges in mySelectedRanges
    try
    count of sheetRanges
    on error
    set sheetRanges to {sheetRanges}
    end try
    repeat with thisRange in sheetRanges
    if contents of thisRange is not missing value then
    try
    --return thisRange --poorly formed result
    thisRange as text
    on error errMsg number errNum
    set {_, myRange, _, myTable, _, mySheet, _, myDoc} to my decoupe(errMsg, quote)
    --set mySelection to (a reference to (range rn of table tn of sheet sn))
    return {myRange, myTable, mySheet, myDoc}
    end try
    end if -- contents…
    end repeat -- thisRange
    end repeat -- sheetRanges
    end tell -- document 1
    end tell -- application
    return {missing value, missing value, missing value, missing value}
    end getSelection
    --=====
    on decipher(n)
    local letters, colNum, rowNum
    set letters to "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    if (character 2 of n) as text > "9" then
    set colNum to (offset of (character 1 of n) in letters) * 64 + (offset of (character 2 of n) in letters)
    set rowNum to (text 3 thru -1 of n) as integer
    else
    set colNum to offset of (character 1 of n) in letters
    set rowNum to (text 2 thru -1 of n) as integer
    end if
    return {colNum, rowNum}
    end decipher
    --=====
    on decoupe(t, d)
    local l
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to ""
    return l
    end decoupe
    --=====
    on getLproj(a)
    local lprojs, localId, lproj
    set lprojs to {{"da_DK", "da.lproj"}, {"nl_NL", "Dutch.lproj"}, {"en_US", "English.lproj"}, {"fi_FI", "fi.lproj"}, {"fr_FR", "French.lproj"}, {"de_DE", "German.lproj"}, {"it_IT", "Italian.lproj"}, {"ja_JP", "Japanese.lproj"}, {"ko_KR", "ko.lproj"}, {"no_NO", "no.lproj"}, {"pl_PL", "pl.lproj"}, {"pt_BR", "pt.lproj"}, {"pt_PT", "pt_PT.lproj"}, {"ru_RU", "ru.lproj"}, {"es_ES", "Spanish.lproj"}, {"sv_SE", "sv.lproj"}, {"zf_CN", "zh_CN.lproj"}, {"zh_TW", "zh_TW.lproj"}}
    set localId to my getLocale(a, "http://support.apple.com/en_US/manuals/#iwork")
    set localId to text (1 + (count of "http://support.apple.com/")) thru -1 of localId
    set localId to text 1 thru ((offset of "/" in localId) - 1) of localId
    set lproj to ""
    repeat with i from 1 to count of lprojs
    if localId is item 1 of item i of lprojs then
    set lproj to item 2 of item i of lprojs
    exit repeat
    end if
    end repeat
    if lproj = "" then error "A Frameworks file is missing !"
    return (path to application support as text) & "iWork '09:Frameworks:SFTabular.framework:Versions:A:Resources:" & lproj
    end getLproj
    --=====
    on getLocale(a, x)
    tell application a to return localized string x
    end getLocale
    --=====
    on getLocalizedFuncName(f, x)
    return localized string x from table "Localizable" in bundle file f
    end getLocalizedFuncName
    --=====
    --[/SCRIPT]
    Yvan KOENIG (from FRANCE lundi 19 janvier 2009 18:57:48)

  • Interchanging of Rows to Columns and Columns to Rows

    Can anyone help me in this query ....
    Interchanging of Rows to Columns and Columns to Rows in Oracle
    Ex :- Actual Data
    EmpId Ename Sal
    1 A 2000
    2 B 3000
    3 C 1000
    4 D 3000
    Query Result should be like below ::::::::::
    after Transposing [ Interchanging of Rows to Columns and Columns to Rows ]the data should come like below
    Empid 1 2 3 4
    EName A B C D
    Sal 2000 3000 1000 3000
    Thanks
    Kavitha and Sudhir

    Please see the following links
    transpose my table column
    http://asktom.oracle.com/pls/ask/f?p=4950:8:1532380262922962983::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:52733433785851
    pivot a result set
    http://asktom.oracle.com/pls/ask/f?p=4950:8:1532380262922962983::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:124812348063

  • Interactive Report - Icon View - Dynamic Columns per Rows ?

    Hi all,
    We use the icon view functionnality in Interactive Report.
    Is there a way to display the 'columns per row' attribute as an application item and set it dynamical via PL/SQL ?
    Any suggestions?
    Thanks in advance for advices,
    Regards,
    Grégory

    Hi,
    Apex 4.0 interactive reports and images (Scott's thread)
    Have some useful information and pointers to the solution you are looking for.
    I hope this help.
    Thank you,
    Ranish

  • SWAP COLUMNS AND ROW IN AN INTERNAL TABLE to display in ALV

    Hi ,
    I want to swap all the rows in an internal table with the column of the internal table to display it horizontally in ALV grid.
    e.g
    1     2   3  (field names)
    A    P   X
    B    Q   Y
    C    R    Z
    should look like :
    D       A   B     C
    E      P   Q    R
    F       X    Y    Z
    Where D , E, F in first column is already apended in new table.
    Or else is there a way to rotate the ALV grid so that it can display rows as columns & columns as rows.
    regards

    hi,
    i have an internal table which is like
    f1  f2 f3  f4 (column header)
    A  1  2   3
    B  4  5   6
    C  7  8   9
    the values in o/p table should be
    A B C  ( column header)
    1  4 7 
    2  5 8
    3  6 9
    Please help!!

Maybe you are looking for

  • IMac G3 Panther, Why do I have three hard drives on my desk top and how do I combine them into one?

    Trying to get an old iMac up to be enough for my four year old to go on the internet.  Upgraded to panther and put an airport card in.  Now problems; 1.  It can connect to my airport express, but not if I have the password enabled, then it won't, eve

  • SSL error in EBS R12.1.3

    hi I configured SSL in my R12.1.3. I referred 376700.1 metalink id . First time it successful and again i did the same thing in another server but it shows error in firefox like Secure Connection Failed An error occurred during a connection to server

  • BDLS Failed Table RSISOSMAP* and RSOSFIELDMAP*

    BDLS Failed Table RSISOSMAP* and RSOSFIELDMAP*     After SyetemCopy I launching the BDLS I get an error when converting the table RSISOSMAP* and RSOSFIELDMAP*. Knowing that I have started 5 BDLS on this system BW, 2 are in error on this same table RS

  • Software Update shows error i.e. Installation requ...

    I have downloaded nokia Software Updater for S60 and it shows error during the start of installation I have P4 2.95 GHZ processor and 256 MB RAM 4 GB free space on C: and D: drive.

  • Error msg in MRP list

    Hi SAP Guru's,              I am getting red light in MRP list (MD06) for my materials mentioning " For material 'X' 'A,0  day's supply is less than limiting value of 0,1-" what is wrong, what settings i need. Thanks & Regards, Karad D D