Display the data in the form of column headers

I am trying to achieve in Apex 4.2

My table is like (example)

Identification number

date of date_a

value_1 number

Value_2 number

Value_2 number

I have my sql like

SELECT id, date_a, value_1, value_2, value_3

from my_table

If the report displays in the form

ID date_a value_1 value_2 value_3

1 01/01/2012 10 20 30

15/03/2012 2 12 14 24

Can anyone show me an example of how to create such a report

01/01/2012-15/03/2012

1                           2

10                        12

20                        14

30                         24

I took a look at pivot, but doesn't seem to be the thing

See you soon

Gus

Gus,

First of all you must understand SQL itself cannot change the names of the columns for a query, as Frank has said.

Columns in a SQL query are the 'projection' and the number of columns, the names of them and the data types must be determined before all data are extracted.

See the following article: 101 PL/SQL: cursors and Projection of SQL

Apex is simply based on the queries that you write, and even there not magically be able to change the names of columns in report based on your data.

This is not to say what you want is impossible... it's possible... but not easily...

See: how a function having a dynamic number of columns in the pipeline?

Essentially the data itself have be questioned or known, before the data is retrieved, so that requires only the generated columns dynamically based on known data (for example, the criteria entered by a user) or you can do a query of two passes... questioning the data only once to get the values and then dynamically generating a second query to extract data with dynamically generated column headers.

In the Apex of reports you will usually have the problem report attributes are defined as part of the update and are determined when the query is assigned to the report (that you can manually override the headers)... but the apex will not allow lines dynamically the changes based on the data, for standard reports, it allows.  I have not tried to do in the Apex, but you can maybe try and generate the report results using a two-pass method, to put in an HTML region, but it depends on what user interaction is required with the report, that you far built-in report functions.

Tags: Database

Similar Questions

  • I downloaded the latest version, but the form page tells me to download the latest version and does not display the form

    I downloaded the latest version, but the form page tells me to download the latest version and does not display the form!

    Ok. Chrome has stopped supporting the player plug-in (for now). You'll want to download the forms by placing the cursor on the link, right click and check-in at your computer. Alternatively, you can try another browser such as Internet Explorer.

  • display the form without exploring

    I use the generator of forms 10g.

    I want to display the form without exploring.

    Is this possible?

    Thank you.

    Start your application using Java Web Start.

    [Java Web Start | http://www.bloggingaboutjava.org/2007/04/running-oracle-webforms-like-a-client-server-application/]

    It is not supported by Oracle, but it works well and looks good.

  • How to use the script to display the number of columns contain no data

    I have a requirement. There is a source that is the excel, the excel file file, we need to load data into the staging table. There are 5 columns mandatory ones must not be null. We used "No. Data Check" for this. The logic is so mentioned previously mentioned 5 columns don't contain any record that the record will be moved to without data. So far, it is fine. Now the requirement is to show what column or columns contain no data. We used a script to do this like:

    RES =' '

    RES = input1 [0] + ": failed because values null in required columns;"

    INPUT1 [1] = res;

    Output 1 = res;

    But it shows message "down because of nulls in the required columns", which is a generic message. We must show what column or columns does not contain the value "failed because of null values in a column required columnA, columnB or columnC. Can someone help me in this regard. Any kind of help is appreciated.

    You can use the variable inputname1, which keeps an array of names of the entry for the script processor attribute. For example:

    var result = "";

    var first = true;

    for (i = 1; i< input1.length;="" i++)="">

    If (input1 [i] == null | input1 [i] == ' ') {}

    If {(first)

    Firstly = false;

    } else {}

    result += "";

    }

    lead inputname1 += [i];

    }

    }

    If (result.length > 0) {}

    result = "failed due to null values in the following mandatory columns:"+ result; "

    }

    Output 1 = result;

    Kind regards

    Nick

  • using a Case statement to display the values of column even as table headers

    I have a database that has been set up kind of tricky, in that some tables are made up of columns that are field names and one link to another table that contain the data for these field... also names there ID displays as many lines instead of as a row of data. I would like to write a query to extract that information and display it as one line for each ID.

    example: table 1

    ID, name, itemresponse and itemcode, Description

    Dee Jones Childrens Hospital 123 SITE location

    123 dee Jones, Date of appointment next NEXTAPPT 22/04/2014

    123 dee Jones was on bedrest NOSHOW reason do not show

    I would like to have the display of data as a record on this same patient, instead of as 3 separate registers (with the Description column in table 1

    Table 2

    ID, name, place, Date of the next meeting, show no reason

    123 dee Jones Childrens Hospital 22/04/2014 was the bed rest

    I have included the code I worked on below my question, for me to get the desired results should I use the Case statement and it's the right way to do it below?

    (SELECT
    PAT.ID "PATIENT ID."
    PAT. FIRST | » '|| PAT. "PATIENT FIRST NAME."
    PAT. "PATIENT DOB," DATE_OF_BIRTH
    DS. Date 'Date of inpatients ',.
    Dai. ITEM_CODE "Item Code",
    Dai. DESCRIPTION "Description."
    Siad. ITEM_RESPONSE,

    Max (CASE WHEN dai. ITEM_CODE IS "SITE" THEN DAI. Decription
    ANOTHER NULL
    END) AS "name of the hospital."

    Max (CASE WHEN DAI.) ITEM_CODE IS 'NEXTAPPT' THEN DAI. ITEM_Description
    ANOTHER NULL
    END) AS 'next Appt Date. "

    Max (CASE WHEN DAI.) ITEM_CODE IS "LASTDATE" THEN DAI. Description
    ANOTHER NULL
    END) AS 'last visit Date.

    Max (CASE WHEN DAI.) ITEM_CODE IS 'NOSHOW' THEN DAI. Description
    ANOTHER NULL
    END) THAT "the reason has not shown".

    Of
    (PAT.ID "IDENTIFYING PATIENT",
    PAT. FIRST | » '|| PAT. "PATIENT FIRST NAME."
    PAT. "PATIENT DOB," DATE_OF_BIRTH
    DS. Date 'Date of inpatients ',.
    Dai. ITEM_CODE "Item Code",
    Dai. DESCRIPTION "Description."
    Siad. ITEM_RESPONSE

    Of

    dm_sessions Ds,
    dm_session_assessments dsa,
    DAS dm_admin_sections,
    dm_session_assessment_items Siad,
    Dai dm_admin_items,
    Po Patient_Orders,
    Inventory inv,
    Patients_Table PAT
    dm_admin_categories CAD

    where dsa.session_Id = ds.session_Id
    and PAT.ID = ds. Patient_ID
    and dsa.excluded_assessment =' no
    and dac.category_code = 'OPEN'

    and dsa.section_id = das.section_id
    and das.category_id = dac.category_id
    and das.section_code = 'northwest'
    and dai.section_id = das.section_id
    and dsai.item_id = dai.item_id
    and dsai.session_assessment_Id = dsa.session_assessment_Id
    and dsai.excluded =' no
    - and Dai.ITEM_ID = Dsai.ITEM_ID
    and Dai.ITEM_CODE IN ('SITE', 'NEXTAPPT', 'LASTDATE', 'NOSHOW')
    and po.patient_ID = ds.patient_ID
    and in. NDC_NO = inv. NDC_NO
    and inv. TDRUG_ABBREV = in. DRUG_ABBREV

    PAT.ID GROUP, PAT. FIRST | » '|| PAT. LAST, PAT. DATE_OF_BIRTH, ds. Date, dai. ITEM_CODE, dai. DESCRIPTION, Siad. ITEM_RESPONSE))

    Hello

    DATE is not a very good name for a column.  Use something like EVENT_DATE, that will not be confused with a keyword from Oracle, instead.

    I don't see something like this column in the CREATE TABLE statement.  He will always be the same value on all lines?

    Here's a way to get the results you requested:

    SELECT id

    first name | ' ' || LastName AS name

    Date of birth

    MAX (CASE WHEN item_code = "NEXTAPPT", THEN item_response END) AS next_appointment,

    MAX (CASE WHEN item_code = "LASTDATE" THEN item_response END) AS last_visit_date,

    MAX (CASE WHEN item_code = "SITE" THEN item_response END) AS location

    FROM mytable1

    GROUP BY id, firstname, lastname, dob

    ;

    Of course, I can't test it very well until you post INSERT statements for the sample data.

    I guess that 2 or more lines of the entry have the same id, then they will necessarily be first name last name, the name and date of birth, too.  No doubt they are standardized in your actual tables.

  • Display the form when the button is clicked

    Hello, I am using JDeveloper 11.1.2.3.0
    I have a button and a form on my jsf page. I want the form to display when I click the button (to be seen). How is it possible in the ADF?
    Thank you

    Take a look at http://tompeez.wordpress.com/2013/03/25/creating-variables-and-attribute-bindings-to-store-values-temporarily-in-the-pagedef/

    Timo

  • SQL Developer: How to copy the data with the output grid column headers?

    Hello

    I use the 2.1.1.64 Version.

    I run a SQL query, down the results grid in the "Query result" window below. Say that I get 10 rows returned, with 5 columns.

    I want to copy this whole grid, as well as the names/column headers to the Clipboard. If I can stick under the original query to document the results of this query.

    I can't find any way to do this. I can copy/paste the results grid, but it does not copy the headers.

    The only way I think to do is to go through many steps to export in a TXT file, then paste that. Unfortunately, that's a lot of steps wasted if I need to do it again and again, and more, the output is pasted in an ugly format with double quotes, etc..

    It seems that the easiest feature is copy and paste the entire grid of the results, and of course, you could the headers. Why is it so difficult/impossible to do?

    (I think that the toad has the same problem. DBArtisan lets you copy and paste the results together, as well as headers, however.)

    Any help would be appreciated!

    Thank you
    John

    Shift-Ctrl-C will copy the headers of columns as well as the selected data.

  • Unable to display the form on the website of temp on catalyst for business

    The form is already created on an online site.

    I inserted the BC code for the form on the new temp site but the form is not visible?

    I changed the homepage of the site be your Muse index.html file.

    The web form does not appear under request a quote section because the shape is removed from the backend BC. See the following thread to understand why it happens and what you can do to prevent deletion of Muse.

    http://forums.Adobe.com/thread/1167555

    Otherwise you can always use the widget to form of Muse which aims both BC and host non - BC - http://helpx.adobe.com/muse/tutorials/adding-contact-form-widgets-muse.html.

    Thank you

    Vinayak

  • Display the form guide in a flex application using the remote object

    I am using livecycle workbench 8.2 and flex 3.0.  Now I'm making the form of livecycle workbech guide.  I use the provided process: samples-forms-> render form Guide 1.0.  and use the SimpleMortgageLoan-formGuide(this has all 3 files: swc, xdp and xsd) for trial.

    I am able to get the PDF and html using process and sample pdf are the option to provide. But I have error when using rendered form guide to get the livecycle form guide (I use that as a starting point:http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/wwhelp/wwhimpl /common/html/wwhelp.htm?context=sdkHelp & file = 000261.html):

    Here is the error I get

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727)

    Timestamp: Monday, April 27, 2009 21:24:28 UTC

    Message: Object EXPECTED

    Online: 103

    Char: 1

    Code: 0

    URI: http://serverHost/DocumentManager/docm1240857760906/eab56933d7dfefb501ad6549129d 40 d 2? type = dGV4dC9odG1sOyBjaGFyc2V0PWlzby04ODU5LTE =

    Any idea?

    Thank you.

    The target url must be the address of the server that you want to retrieve information. For example http://localhost: 8080.

    Jasmine

  • problem displaying the form in Internet explore

    Hello

    I'm new to forms, can you please help me in this problem. After the construction of the form, I started the OC4J Instance and then I ran the form. Now I have Internet explore open default and it does not show the form. I had some HTML tags like this.

    < Html > < head > ORACLE FORMS. < / head >
    < onload = "document.pform.submit (); the body">
    < form name = 'dform"action =" http://computername:port/forms90/f90servlet"method ="POST">
    "< input type ="hidden"name ="form"value="C:\forms\MODULE2.fmx ">
    < input type = "hidden" name = "userid" value = "SCOTT/TIGER @" >
    < input type = "hidden" name = "obr" value = "yes" >
    < input type = "hidden" name = "table" value = "YES" >
    < / form > < body / > < / html >

    Please help me

    concerning
    Anthony

    The Java Console offers you nothing in this case. The browser crashes then the JConsole is not available. This type of accident is almost always caused by a conflict with two Java execution environments. In your case it will be Oracle Jinitiator and another... the question is "what the other jre is causing the problem? This could be one of the following:

    1. Sun Java Plugin (YPI/JRE)

    2. Add the browser-toolbars (Google, Yahoo, MSN, etc.). All of these toolbars or access an external JRE or include their own within their facilities.

    3. improper installation of JInitiator.

    I recommend the following steps:

    1. close ALL open browsers

    2 uninstall plugin Sun Java and JDK versions. See the Control Panel Add/Remove programs

    3 uninstall all versions of Oracle Jinitiator.

    4 uninstall all toolbar browser add ons like Google Toolbar, etc.

    5 RESET

    6. with all browsers closed, install Oracle Jinitiator. If you use an earlier to 1.3.1.22 Langis version, I recommend to get the latest (1.3.1.30). Remember to change the configuration in formsweb.cfg if you choose a different version and copy the new file to jinit13130.exe to ORACLE_HOME\jinit

    7. open a browser and try to run a form (of course, you need to first start OC4J).

  • Is it really true that I can't view file creation date and time in the form of column bin?

    I need to sort my material by the date and time of creation of the file.

    It seems that this basic metadata more are missing in Premiere Pro

    I hope someone can point to my error here - otherwise, it's a MAJOR FAILURE by Adobe. Surely, after file name, it is the most "basic" bit of METADATA required from a file.

    Otherwise there is no solution workaround, other than the batch renaming clips at the finder level. (I tried the tags and comments at the research level, but can't seem to access it either)

    Hi Jim,.

    Unfortunately, even when these data are present for the clips, the ability to sort by these data is broken.

    It caused a lot of performance issues, then Yes, that it has been disabled.

    and they still haven't fixed yet.

    This is fixed in the next version. However, you must add the columns in the display of the metadata.

    Thank you

    Kevin

  • How to display Page also in the form of columns of report items?

    It seems that as soon as I do a column report a page element, and then disappears in the columns on the report. I want that page elements considered as well report columns. Is this possible in discoverer?

    Create a calculated item based on the item record. This effectively shows the column twice, once as part of page and then as a column.

  • display the name of column in exported .xls

    Hello

    I found the following code which works perfectly to export data from forms in .xls.
    procedure ExportToExcel is
    
    APPLICATION OLE2.OBJ_TYPE;
    WORKBOOKS OLE2.OBJ_TYPE;
    WORKBOOK OLE2.OBJ_TYPE;
    WORKSHEETS OLE2.OBJ_TYPE;
    WORKSHEET OLE2.OBJ_TYPE;
    ARGS OLE2.LIST_TYPE;
    CELL OLE2.OBJ_TYPE;
    J INTEGER;
    K INTEGER;
    file_name_cl VARCHAR2(32767);
    user_cancel EXCEPTION;
     
     
    BEGIN
     
    file_name_cl := CLIENT_GET_FILE_NAME('C:\rep2excel', 'MyExport.xls', 'XLS Files (.xls)|*.xls|', NULL, SAVE_FILE, TRUE);
    file_name_cl := SUBSTR(file_name_cl,1,LENGTH(file_name_cl));
    --
    IF file_name_cl IS NULL THEN
    MESSAGE('INSIDE EXCEPTION STATEMENT');
    RAISE user_cancel;
    END IF;
     
    --MESSAGE('STARTING TRIGGER');
     
     
    APPLICATION := OLE2.CREATE_OBJ('Excel.Application');
    OLE2.SET_PROPERTY(APPLICATION,'Visible',True);
     
    WORKBOOKS := OLE2.GET_OBJ_PROPERTY(APPLICATION, 'WORKBOOKS');
    WORKBOOK := OLE2.INVOKE_OBJ(WORKBOOKS, 'ADD');
    WORKSHEETS := OLE2.GET_OBJ_PROPERTY(WORKBOOK, 'WORKSHEETS');
    WORKSHEET := OLE2.INVOKE_OBJ(WORKSHEETS, 'ADD');
     
    GO_BLOCK('ELEVI');
     
    FIRST_RECORD;
     
    J:=1;
     
    K:=1;
     
    WHILE :SYSTEM.LAST_RECORD = 'FALSE'
     
    LOOP
     
    FOR K IN 1..9 --form has 9 columns
     
    LOOP
     
     
    If not name_in(:system.cursor_item) is NULL Then
     
    args:=OLE2.create_arglist;
     
    OLE2.add_arg(args, j);
     
    OLE2.add_arg(args, k);
     
    cell:=OLE2.get_obj_property(worksheet, 'Cells', args);
     
    OLE2.destroy_arglist(args);
     
    OLE2.set_property(cell, 'Value', name_in(:system.cursor_item));
     
    OLE2.release_obj(cell);
     
     
    End If;
     
    NEXT_ITEM;
     
    END LOOP;
     
     
    J:=J+1;
     
    NEXT_RECORD;
     
    END LOOP;
     
     
    -- for the last record
     
    for k in 1..9
     
    loop
     
    If not name_in(:system.cursor_item) is NULL Then
     
    args:=OLE2.create_arglist;
     
    OLE2.add_arg(args, j);
     
    OLE2.add_arg(args, k);
     
    cell:=OLE2.get_obj_property(worksheet, 'Cells', args);
     
    OLE2.destroy_arglist(args);
     
    OLE2.set_property(cell, 'Value', name_in(:system.cursor_item));
     
    OLE2.release_obj(cell);
     
    End If;
     
    next_item;
     
    end loop;
     
    OLE2.Release_Obj(worksheet);
     
    OLE2.Release_Obj(worksheets);
     
    -- Save the Excel file created
     
    args := OLE2.Create_Arglist;
     
    OLE2.Add_Arg(args,'c:\temp\test.xls');
     
    OLE2.Invoke(workbook, 'SaveAs', args);
     
    OLE2.Destroy_Arglist(args);
     
    -- release workbook
     
    OLE2.Release_Obj(workbook);
     
    OLE2.Release_Obj(workbooks);
     
    OLE2.Release_Obj(application);
     
    MESSAGE('RIGHT BEFORE END');
    END;
    But the cells are filled with data from the 1st line. In Excel, on the 1st line, with bold, I want the name of the columns. How can I do? If the recordings should start from the 2nd line.
    Any ideas?

    Thank you!

    Rogerrrrrrrrrr...
    because there was a pause stmt. in the code... as a stmt message... remove a friend!
    you don't need this funtion now that you need display all visible items in the block...

    PROCEDURE l_call_Excel(p_block varchar2 ) is
    
    APPLICATION OLE2.OBJ_TYPE;
    WORKBOOKS OLE2.OBJ_TYPE;
    WORKBOOK OLE2.OBJ_TYPE;
    WORKSHEETS OLE2.OBJ_TYPE;
    WORKSHEET OLE2.OBJ_TYPE;
    Arglist OLE2.LIST_TYPE;
    CELL OLE2.OBJ_TYPE;
    J INTEGER;
    K INTEGER;
    file_name_cl VARCHAR2(32767);
    user_cancel EXCEPTION;
    Workfont OLE2.OBJ_TYPE;
    WorkInterior OLE2.OBJ_TYPE;
    m_item varchar2(40);
    m_tot_columns number := 0;
    --Inner Proc.
    Procedure put_cell (Row_num number,
                        Col_num number,
                        put_value varchar2,
                        font_name varchar2 default null,
                        font_size binary_integer default null,
                        font_style varchar2 default null,/*here you can pass BOLD for bold, ITALIC for italic etc*/
                        font_color binary_integer default null) is
    Begin
            Arglist := OLE2.create_arglist;
            OLE2.add_arg(Arglist,row_num);
            OLE2.add_arg(Arglist,col_num);
                   cell := OLE2.get_obj_property(Worksheet,'Cells',Arglist);
            OLE2.destroy_arglist(Arglist);
            OLE2.set_property(cell,'Value',put_value);
    
            Workfont := OLE2.get_obj_property(cell,'Font');
            WorkInterior := OLE2.get_obj_property(cell,'Interior');
            If font_name is not null then
                   OLE2.set_property(Workfont,'Name',font_name);
            End if;
            If font_size is not null then
                   OLE2.set_property(Workfont,'Size',font_size);
            End if;
            If font_style is not null then
                   OLE2.set_property(Workfont,font_style,1);
            End if;
            If font_color is not null then
                   OLE2.set_property(Workfont,'ColorIndex',font_color);
            End if;
    OLE2.release_obj(workfont);
    OLE2.release_obj(workinterior);
    OLE2.release_obj(cell);
    End;
    
    BEGIN
    
      file_name_cl := CLIENT_GET_FILE_NAME('C:\rep2excel', 'MyExport.xls', 'XLS Files (.xls)|*.xls|', NULL, SAVE_FILE, TRUE);
      file_name_cl := SUBSTR(file_name_cl,1,LENGTH(file_name_cl));
      --
      IF file_name_cl IS NULL THEN
         MESSAGE('INSIDE EXCEPTION STATEMENT');
         RAISE user_cancel;
      END IF;
      --MESSAGE('STARTING TRIGGER');
    
      APPLICATION := OLE2.CREATE_OBJ('Excel.Application');
      OLE2.SET_PROPERTY(APPLICATION,'Visible',True);
    
      WORKBOOKS := OLE2.GET_OBJ_PROPERTY(APPLICATION, 'WORKBOOKS');
      WORKBOOK := OLE2.INVOKE_OBJ(WORKBOOKS, 'ADD');
      WORKSHEETS := OLE2.GET_OBJ_PROPERTY(WORKBOOK, 'WORKSHEETS');
      WORKSHEET := OLE2.INVOKE_OBJ(WORKSHEETS, 'ADD');
      OLE2.set_property(Worksheet,'Name','this is my sheet, named by me');
    
      GO_BLOCK(p_block);
      FIRST_RECORD;
     /*as your data should print from second row*/
      J:=2;
      K:=1;
      LOOP
        m_item := get_block_property(p_block,first_item);
        K:=1;
        Loop
         exit when M_ITEM IS NULL ;
          If not id_null(find_item(p_block||'.'||m_item))  then
               If get_item_property(p_block||'.'||m_item,item_type)IN ( 'TEXT ITEM' ,'DISPLAY ITEM','LIST','CHECKBOX')
                     and get_item_property(p_block||'.'||m_item,visible) ='TRUE'   then
                    If j=2 then
                    put_cell(1,k,get_item_property(p_block||'.'||m_item,column_name));
                  end if;
                  If not name_in(p_block||'.'||m_item) is NULL Then
                    put_cell(j,k,name_in(p_block||'.'||m_item));
                  End If;
                  K:=k+1;
                 end if;
           end if;
         m_item := get_item_property(p_block||'.'||m_item,NEXTITEM );
         END LOOP;
         J:=J+1; 
    
       exit when :system.last_record = 'TRUE';
       NEXT_RECORD;
       END LOOP;
      OLE2.Release_Obj(worksheet);
      OLE2.Release_Obj(worksheets);
      -- Save the Excel file created
      Arglist := OLE2.Create_Arglist;
      OLE2.Add_Arg(Arglist,'c:\temp\test.xls');
      OLE2.Invoke(workbook, 'SaveAs', Arglist);
      OLE2.Destroy_Arglist(Arglist);
      -- release workbook
      OLE2.Release_Obj(workbook);
      OLE2.Release_Obj(workbooks);
      OLE2.Release_Obj(application);
      MESSAGE('RIGHT BEFORE END');
    END;
    
  • View multiple lines of phone in the form of columns

    Oracle 9i

    I have the tables

    visitors
    ID name
    __ ________________
    1 John boy
    Beautiful lady 2

    Phone
    Phone to cust
    __ ___ ____________
    1 1 555-555-5555
    2 1 666-666-6666
    3 2 222-222-2222
    4 2 999-999-9999


    I want to see
    Customer telephone1 telephone2
    __________ ___________ ____________
    John Boy 555-555-5555 666-666-6666
    Beautiful lady 222-222-2222 999-999-9999

    I searched all morning, I can't find a simple way to do this (assuming there is one).

    Published by: user6751911 on October 17, 2011 09:21

    Published by: user6751911 on October 17, 2011 09:22

    Hello

    Welcome to the forum!

    This is called a Pivot . Exactly how do depends on your version of Oracle and your needs (for example, the order of output on each line is important?)
    See "how to convert lines to the columns" in the FAQ forum:
    SQL and PL/SQL FAQ

    Whenever you have a problem, please post CREATE TABLE and INSERT statements for some examples of data. Since this is your first post, I'll do it for you:

    CREATE TABLE     customers
    ( id      NUMBER     PRIMARY KEY
    , name       VARCHAR2 (10)
    );
    
    INSERT INTO customers (id, name) VALUES (1, 'John Boy');
    INSERT INTO customers (id, name) VALUES (2, 'Lady Bele');
    
    CREATE TABLE     phone
    ( id      NUMBER     PRIMARY KEY
    , cust       NUMBER
    , phone       VARCHAR2 (20)
    );
    
    INSERT INTO phone (id, cust, phone) VALUES (1, 1, '555-555-5555');
    INSERT INTO phone (id, cust, phone) VALUES (2, 1, '666-666-6666');
    INSERT INTO phone (id, cust, phone) VALUES (3, 2, '222-222-2222');
    INSERT INTO phone (id, cust, phone) VALUES (4, 2, '999-999-9999');
    

    This helps clarify what is exactly the problem, and it allows people to test their ideas.

    Here's a way to rotate these data using Oracle 9:

    WITH   got_r_num  AS
    (
         SELECT     c.id
         ,     c.name
         ,     p.phone
         ,     ROW_NUMBER () OVER ( PARTITION BY  c.id
                                   ORDER BY          p.phone
                                 )        AS r_num
         FROM    customers  c
         JOIN     phone        p  ON  c.id  = p.cust
    )
    SELECT       name
    ,       MIN (CASE WHEN r_num = 1 THEN phone END)     AS phone1
    ,       MIN (CASE WHEN r_num = 2 THEN phone END)     AS phone2
    FROM       got_r_num
    GROUP BY  id, name
    ;
    

    This also works in versions greater than 9, but from Oracle 11.1, you can use SELECT... Function PIVOT.

    Output:

    NAME       PHONE1               PHONE2
    ---------- -------------------- --------------------
    John Boy   555-555-5555         666-666-6666
    Lady Bele  222-222-2222         999-999-9999
    

    This allows to display up to 2 phone numbers per client. If you have 3, then add

    ,       MIN (CASE WHEN r_num = 3 THEN phone END)     AS phone3
    

    SELECT main clause. If you could have 4 numbers by cusotmner or 5, or any fixed number, continue to add columns as phone3 above to SELECT main clause.
    If you don't know how amny phone numbers a customer might have, but that you want to view all the, then swivel can be difficult. See the thread below for some ideas on this subject:
    Re: County report and the sum of the number of rows by multiple columns

    Published by: Frank Kulash, October 17, 2011 12:40
    Added example data and example

  • Display the form guide in the browser using ES2

    I am making a form guide in worspace and in a browser so that you can access the guide via a url outside the workspace. Can someone refer me to a good guide or tutorial for that.

    Thank you

    Making the guide in the workspace is very easy and fast. Just point the guide in the field of the action profile.

    To view the guide in a browser, I created a simple process

    who calls the rendering process Guide (in the application of the (System) Guide). It's a generic rendering engine which accepts a URL to indicate which guide you want to view as a TargetURL to update the button submit for presentations. I then uses the Rest interface to call my process and here is th eguide gets displayed. Does make sense?

    Paul

Maybe you are looking for