Select Single record from Popup box

Hi Experts,
I am calling zcomponent 2 from zcomponent 1 as POPUP screen and populating the table view.
Now i need to select any 1 of the result from popup and be able to populate the data in the view of zcomponent 2 and close the popup box.
Can any one help me with this ASAP please.
Regards,
Juturi.

Hi Mario,
Please take a look at this thread..
Re: SELECT DISTINCT does not work in a recordset object
cheers,
Prashanth
P.S please mark helpful answers

Similar Messages

  • Selecting single record from multiple record based on date

    Hi experts,
    I have a table which contains the multiple records for single ID No. Now i have to select single record which contains the latest date.
    here is the structure
    Name   Null Type        
    ID_P        NUMBER      
    NAME_P      VARCHAR2(12)
    DATE_P      TIMESTAMP(6)
    Records
    1 loosi     22-AUG-13 01.27.48.000000000 PM
    1 nammi  26-AUG-13 01.28.10.000000000 PM
    2 kk        22-AUG-13 01.28.26.000000000 PM
    2 thej      26-AUG-13 01.28.42.000000000 PM
    now i have to select below 2 rows how can write select qurie for this?
    1 loosi     26-AUG-13 01.27.48.000000000 PM
    2 thej      26-AUG-13 01.28.42.000000000 PM

    Hi,
    You can use the analytic ROW_NUMBER function.
    I don't have a copy of your table, so I'll use scott.emp to illustrate.  In scott.emp, there may be multiple rows for a single job.  To display just 1 row per job, the row with the most recent hiredate:
    WITH got_r_num AS
         SELECT  empno, job, deptno, hiredate -- Or whatever columns you want
         ,       ROW_NUMBER () OVER ( PARTITION BY  job
                                      ORDER BY      hiredate DESC
                                    )  AS r_num
        FROM    scott.emp
    --  WHERE ...   -- If you need any filtering put it here
    SELECT   *      -- Or list all columns except r_num
    FROM     got_r_num
    WHERE    r_num   = 1
    What results do you want in case of ties?  Depending on your requirements, you may want to add tie-breaking expressions to the analytic ORDER BY clause, and/or use RANK instead of ROW_NUMBER.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
    Point out where the query above is producing the wrong results, and explain, using specific examples, how you get the right results from the given data in those places.
    If you modify the query at all, post your modified version.
    Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • How to Enable a Selected single record from Table control...

    Hi,
    I have 5 records in my table control and in screen Painter in Made all the fields in Table control as Output field.
    and  successfully all my Table control fields are disabled...
    Now Now i want to enable the record which i selected n rest all the 4 records should be in Disable.
    what i did is:
    in PBO.
    loop at itab into wa with contol TBC1 .
    Module XYZ.
    endloop.
    Module XYZ.
    loop at screen.
    if screen-group = 'x'.
    screen-input =  1.
    modify screen.
    endif.
    End Module.
    Please help me....
    Thanks,

    hi
    in the layout of the screen u might have dragged and dropped the table control
    double click on it u will get attributes screen in that u select MULTIPLE or SINGLE under Line-Selection
    under attributes tab based on ur requirement.
    table control declaration:
    controls : control type tableview using screen 8000.
    the internal table in table control must be like
    data : begin of itab occurs 0,
    empno type .......,
    empname......,
    empcity.....,
    check(1), " for tab selection"
    end of itab.
    data : itab1 like itab occurs 0 with header line.
    data : flag.
    data : wk_init type i.
    data : lines type i.
    in the attributes screen of the table control
    pass the value ITAB-CHECK to the field W/SELECTION
    in SE51
    PBO
    Module_status_0800
    loop with control table_control_name.
    module_fill_tcontrol.
    endloop.
    PAI
    Module_user_command_0800
    loop with control table_control_name.
    module_read_tcontrol.
    endloop.
    in se38
    Module_status_0800.
    describe table itab1 lines lines.
    control-lines = lines.
    endmodule.
    Module_fill_tcontrol.
    describe table itab1 lines wk_init.
      if wk_init is not initial.
        read table itab1 into itab index control-current_line.
      endif.
    for enabling a row in the table control:
    if sy-ucomm = 'EDIT'.
        loop at screen.
          if flag is initial.
            screen-input = 0.
          elseif ( flag eq 'Y' ).
            if  ( ( screen-name = 'ITAB-EMPNO' or
                    screen-name = 'ITAB-EMPNAME' or
                    screen-name = 'ITAB-EMPCITY' )   
              and control-line_selector eq itab-check
              and control-current_line le lines ).
              screen-input = 1.
            else.
            endif.
          endif.
          modify screen.
        endloop.
      endif.
    endmodule.
    Module_read_tcontrol.
    READ TABLE itab1 INDEX control-current_line.
    IF sy-subrc EQ 0.
    MODIFY itab1 FROM itab INDEX control-current_line.
    ELSE.
    MOVE-CORRESPONDING itab TO itab1.
    APPEND itab1.
    CLEAR itab1.
    ENDIF.
    endmodule.
    module_user_command.
    case sy-ucomm.
    when 'EDIT'. -
    > Function Code assigned to the pushbutton to enable the field 
          flag = 'Y'.
    endcase.
    endmodule.
    Regards
    Murali.M

  • Error while selecting NULL value from Popup Key LOV(numeric or value error)

    Hi,
    I have a item P1_DEPTNO with following properties.
    P1_DEPTNO - Popup Key LOV (Displays description, returns key value)
    LOV - P1_DEPT_LOV
    select deptname d, deptno r from deptP1_DEPTNO item properties
    List of Values
      Named LOV - P1_DEPT_LOV
      Display Null - Yes // changed to Yes, so that it can accept NULL values.
      Null display value - NULL
      Null return value -   (blank)PL\SQL Process -
    declare
    v1 number;
    begin
    if :P1_DEPTNO is null OR :P1_DEPTNO = '' then
        v1 := 0;
    else
        v1 := :P1_DEPTNO;
    end if;
    // rest of the PL\SQL process
    end;Now, when I run the page and select NULL value from Popup LOV and submit, I get the following error.
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error.When, I select any other value other than NULL, then it's working perfectly fine.
    Only in case of NULL value, I am getting this error.
    ANY idea, why this error is coming??
    Thanks,
    Deepak

    Hi Varad,
    I did the following change
    Null display value - (blank) // by default it is displaying '%' in the select this
    Null return value - -1
    but when I select % (null value) from the popup list, it displays the return value -1 in the text field.
    My question is why it is displaying the return value -1 in the text field...*It should display the display value in the text field (i.e blank in this case)*
    then, I did the following change
    Null display value - (blank) // by default it is displaying '%' in the select this
    Null return value - // a single space, so that when I select %(null value) from the list, it should display blank in the text field...
    then I did the following change in the PL\SQL process.
    PL\SQL process
    declare
    v1 number;
    begin
    if :P1_DEPTNO = ' ' then // -- checking the value of single space ' ' when we select %(null) in the popup list, BUT even I select %(null), control is not coming here.
        v1 := 0;
    else
        v1 := :P1_DEPTNO;
    end if;
    // rest of the PL\SQL process
    end;Thanks,
    Deepak

  • How to select multiple records from a TREE in the table

    HI,
    I have a tree structure which is in the table.When I open the node of the tree,all the subnodes are coming as one-one records in the table.I want to slect multiple record from this table.I applied onLeadSelect for this table,I can select only 1 record from the table.
    Can any one plz suggest me how to select multiple records from the table so that I can get all the data of those selected record.
    Regards
    -Sandip

    Rashmi/Kukku,
    First of all, Thanks for your help!
    Is there any other way in which we can access tables other than using BAPIs or RFCs?
    In my case, there is a table structure which has to be updated with values after validating a key. i don't think there is any RFC available now. do i need to create bapi/rfc for that?
    Krishna Murthy

  • How can I select random records from one column

    How can I random select 400 records from a column contains more than 500,000 records? And how long will it take in oracle? Thanks.

    here is one option: (just change 5 to suit your needs...)
    SQL>select * from (
      2  select object_name
      3  from all_objects
      4  order by dbms_random.random
      5  ) where rownum < 5
      6  /
    OBJECT_NAME
    UTL_SYS_COMPRESS
    GV_$LOG_HISTORY
    GV_$LOGMNR_LOGS
    WWV_FLOW_THEME_7
    SQL>/
    OBJECT_NAME
    WWV_FLOW_UPGRADE_REPORT
    WRI$_ADV_SQLT_STATISTICS_PK
    V_$DATABASE
    GV_$SERVICEMETRIC
    SQL>/
    OBJECT_NAME
    WWV_FLOW_CREATE_FLOW_API
    WRH$_SERVICE_WAIT_CLASS_BL
    EXU8SNAPL
    GV$SERVICEMETRIC_HISTORY
    SQL>                well, regarding how long will it take... it depends from lots of variables...
    Cheers,
    Andrea

  • Displaying the selected multiple records from node using onleadselect event

    Hi all,
    How to display the selected multiple records from node to node using onleadselect event.
    i came to know tht to fulfill this requirement i need to use the method get_selected_elements,
    how to use this method in my event??
    sree

    Hi Sree,
    Try below code..
    DATA : lo_nd_it_lips TYPE REF TO if_wd_context_node,             // This is first node
                 lo_el_it_lips TYPE REF TO if_wd_context_element,
                 ls_it_lips TYPE wd_this->Element_it_lips,
                 lt_it_lips TYPE wd_this->Elements_it_lips.
               DATA: wa_temp TYPE REF TO if_wd_context_element,
                lt_temp TYPE wdr_context_element_set.
    * navigate from <CONTEXT> to <IT_LIPS> via lead selection
          lo_nd_it_lips = wd_context->path_get_node( path = `ZRETURN_DEL_CHANGE.CHANGING_3.IT_LIPS` ).
          CALL METHOD lo_nd_it_lips->get_selected_elements
            EXPORTING
                INCLUDING_LEAD_SELECTION = ABAP_true
            RECEIVING
              set = lt_temp.
          DATA lo_nd_pack_mat TYPE REF TO if_wd_context_node.          //Second Node
          DATA lo_el_pack_mat TYPE REF TO if_wd_context_element.
          DATA ls_pack_mat TYPE wd_this->Element_pack_mat.
          DATA lt_pack_mat TYPE wd_this->Elements_pack_mat.
    * navigate from <CONTEXT> to <PACK_MAT> via lead selection
          lo_nd_pack_mat = wd_context->get_child_node( name = wd_this->wdctx_pack_mat ).
          lo_nd_pack_mat->get_static_attributes_table( importing table = lt_pack_mat ).
          LOOP AT lt_temp INTO wa_temp.
            CALL METHOD wa_temp->get_static_attributes
              IMPORTING
                static_attributes = ls_it_lips.
                  ls_pack_mat-vbeln = ls_it_lips-vbeln.
                  ls_pack_mat-material = ls_it_lips-matnr.
                  ls_pack_mat-vgbel = ls_it_lips-vgbel.
                    append ls_it_lips to lt_unpack.
                  CLEAR ls_pack_mat.
           ENDLOOP.
    Cheers,
    Kris.

  • Selecting Multiples Values from Multiselect Box

    Hi
    Here is my requirement ,
    Multiselect List Box should display Simulator_Type Values
    Simulator_Type Values           Values to search for in the column simulator type
    AC - small signal                              AC
    HB - Carrier                                    HB
    SP - Linear Noise                            SP - L
    SP - s parameters                           SP - s
    TR - Transient                               TR
    DC - operational point                     DC
    ET - Envelope Transient                  ET
    SSNA                                           SSNA
    [nothing]                                      nilDepending on the values selected in the multiselect values the data has to be dipayed where the value is in the simulator type column
    For Eg : AC - small signal is selected in the :p1_simulator_type multiselect box, The data where the word AC is in simulator_type column should display
    Examples of data in the simulator_Type column:
    SIMULATOR_TYPE
    ac, dcOp, Periodic Steady-pss
    AC - small signal
    AC Small Signal, Operating Point, Periodic Steady
    AC - small signal, SSNA
    DC - operational point
    ET - Envelope Transient
    So , here if i select AC - small signal from the multiselect list box , then the data where "AC" is there in simulator_type has to be displayed , in this case the data associated with
    ac, dcOp, Periodic Steady-pss
    AC - small signal
    AC Small Signal, Operating Point, Periodic Steady
    AC - small signal, SSNA
    has to be displayed...
    currently i have the report query below which is working but only when one simulator type is selected ....
    select
    * from   DW_RFA_JOBDATA
    where  RFA_SUBMIT_TIME >= :P1_START_DATE
    and RFA_SUBMIT_TIME < :P1_END_DATE    
    AND RFA_SIMULATOR_TYPE like '%'||:P1_SIMULATOR_TYPE||'%'Could any body please let me know how do i get data when multiple values are selected...
    Please let me know any further explanation is needed for the question
    Thank you
    Edited by: priyapinky on May 5, 2010 9:26 PM
    Edited by: priyapinky on May 5, 2010 9:54 PM
    Edited by: priyapinky on May 6, 2010 8:48 AM

    Hello,
    It seems to me like you don’t really understand how multi select items work in APEX. This type of items (we are talking about multi-select list, checkbox and the shuttle item) don’t really returned multiple values. They returned a single value that contains multiple segments, each include one valid option. By default, each segment is delimited with a colon (:). In your case it means that if you chose two values from your static LOV, the returned value will look similar to “HB:DC” (or any other combination of options). Now you need to work with this value.
    The way your RFA_SIMULATOR_TYPE column build, you can’t really work with the multi-select value, as you’ll never find a match to it, as this is actually an artificial value that only exist as a result of your multi-select.
    Regarding the new query you are trying, you wrote yourself that “i am getting the data with all the simulator_type select”, and that is correct. Where in this query you are using your filter (:P1_SIMULATOR_TYPE)? This is not the way to go.
    You need to break the compound value returned by your multi-select items, and work individually with each segment. You can do that in two ways. The simple one, as I already suggested, is to add another column that will contain only the code describing the simulator (similar to the returned value of the static LOV). In this case, using the instr() function you are checking if the column value is included in your filter (it’s a revered angle – you are actually checking if the single column value is included in your filter and not if the filter included in your column).
    The second option is a bit more complicated and it involves slicing the filter itself and dynamically build your query, using the “SQL Query (PL/SQL function body returning SQL query)” report option. In this case we are going to use the APEX built-in function APEX_UTIL.STRING_TO_TABLE(). The following is a very simple code example that you’ll need to adapt to your scenario:
    declare
      q      varchar2(4000);
      filter APEX_APPLICATION_GLOBAL.VC_ARR2;
    begin
      q := 'select * from emp where ';
      filter := apex_util.string_to_table('10:20');
      for i in 1..filter.count loop
        if i = 1 then
          q := q || 'deptno = ' || filter(i);
        else
          q := q || 'or deptno = ' || filter(i);
        end if;
      end loop;
      return q;
    end;In your case the parameter for the string_to_table is your filter item, and you can use LIKE as your comparison operator.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Forthcoming book about APEX: Oracle Application Express 3.2 – The Essentials and More

  • How to delete the single record from the  ODS

    HI,
       I want to DELETE  the particular record from ODS.. how to delete that..
    plz give me the solution.. it's urgent..
    with regards
    @jay

    Hi Prakash,
        You can delete a particular record from ODS by specifying the key field name in Selective deletion button available in Contents tab in the manage screen of ODS. But it will only delete the record from the active data table and not from the Change log and new data table . You should be very carefull if you are doing in Production system as there is chance of deleting other records accidentally.
    Go to Selective deletion button - > Click on delete selection -> Enter the key field values of the record you want to delete-> Press save button to save as Variant -> Go back and click on selection button -> Chosse the background job type -> Click on start button.
    Regards,
    Prakash

  • Selecting structure fields from search box in expressions and rules.

    Hi,
      I've a case where there are more than one structure object (structures bound to DDIC structure) with same field (lets say MATNR for example). Now assume that I've 5 structures with the field MATNR (struct_1, struct_2,... struct_5). I've to use the field struct_3-MATNR in one of the expressions are result object. So I click on the context menu button of the result link and click on Select... menu option. In the pop up search screen I type MATNR and it shows me 5 result records. Now the problem is how do I know which MATNR belongs to struct_3. The search results doesn't show to which structure &/OR table a field belongs to.
    I've been randomly selecting each one till I get the right one which wastes a lot of time.

    I'll try to put my case with a more detailed explanation.
    Hierarchy:
    Function_01->Ruleset_01->Ruleset_exp_01(DB_LOOKUP)
    In the above DB_LOOKUP I try to fetch records from database based on VBELN.
    I've a structure Struct_01 in the Function_01 context with the element VBELN in it(Struct_01).
    My select query goes like this.
    Select Col1 Col2 Col3 from XYZ_TABLE WHERE VBELN = Struct_01-VBELN.
    I've to select Struct_01-VBELN for the above case, but I don't find Struct_01 though it is in the function context.
    Note: I've around 5 structures with VBELN

  • Sql query to bring single record from right side of a table

    hi
    I have two tables as below:
    create table testsh1 ( idd varchar2(10), name varchar2(20));
    create table testsh2 ( idd varchar2(10), balance float );
    insert into testsh1 values('1','abc');
    insert into testsh1 values('2','def');
    insert into testsh1 values('3','ghi');
    insert into testsh1 values('4','jkl');
    insert into testsh1 values('4','jkl');
    insert into testsh1 values('3','ghi');
    insert into testsh2 values('1',500);
    insert into testsh2 values('1',500);
    insert into testsh2 values('3',1000);
    insert into testsh2 values('3',1000);
    insert into testsh2 values('4',1500);
    insert into testsh2 values('4',1500);
    insert into testsh2 values('1',500);
    I am expecting the result below:
    1 abc 500
    2 def NULL
    3 ghi 1000
    3 ghi 1000
    4 jkl 1500
    4 jkl 1500
    That is only records from testsh1 table can come as many times but from testsh2 only we need to bring unique and matching records on column idd.
    Please help
    Thanks

    Hi Shavetha,
    As the testsh2 has duplicates of each record, the DISTINCT of the record has to be record has to be applied.
    Please Try this,
    SELECT IDD, NAME, (SELECT DISTINCT BALANCE
                                  FROM TESTSH2 B
                                 WHERE B.IDD = A.IDD) BALANCE
      FROM TESTSH1 A;Which Outputs:
    IDD     NAME     BALANCE
    1     abc     500
    2     def     
    3     ghi     1000
    4     jkl     1500
    4     jkl     1500
    3     ghi     1000Thanks,
    Shankar

  • Time out while reading single record from CRMD_ORDERADM_H table on OBJECTID

    Hi,
    This is the problem i am facing in CRMD_ORDERADM_H.
    if i search for a single record in CRMD_ORDERADM_H Table using SE11 on OBJECT_ID field, it is giving me Time out error.
    CRMD_ORDERADM_H db size would be > 1 Billion records.
    It is having a Secondary Standard index on OBJECT_ID.
    If i search for single record with OBJECT_ID  and PROCESS_TYPE i am able to get the result within seconds.
    But if i take some range in OBJECT_ID and single value in PROCESS_TYPE then i am getting Time out erro.
    we have index (custom) on OBJECT_ID and PROCESS_TYPE combination.
    What would be the cause?
    Thanks in Advance,
    -Kishore

    Hello,
    there is a special table for reading records from orders: CRMD_ORDER_INDEX.
    Regards, R

  • Livecycle populate text field with multiple records from list box

    Can someone tell me how can I populate a text field from list box when I have multiple select.
    Here is example:
    List box consist: Hello
                             World.
    I want to see this in text field: Hello,World.
    Thanks!

    Hi Legro
    I don't know if I understand you correctly, but you can do something like this:
    ----------------- java script begin ---------------------------------
    //Reset text field
    TextField.rawValue = "";
    //loop through items in listbox
    for(i = 0; i < ListBox.length; i++)
              //if item selected
              if(ListBox.getItemState(i))
                        //check if Text field value if null
                        if (TextField.isNull)
                                  TextField.rawValue = ListBox.getDisplayItem(i);
                        else
                                  TextField.rawValue = TextField.rawValue + " " + ListBox.getDisplayItem(i);
    ----------------- java script end ---------------------------------
    I have attached an sample PDF so that you can see how it works!!
    Kind Regards
    Søren Høy Nielsen Dafolo A/S

  • How do I query a single record from a database?

    I need to retrieve a record from a specific table within a .mdb file using it's name or primary key to search.
    I have the database connectivity toolkit(LV7.1) and have not been able to figure this out.
    Any help would be greatly appreciated.
    Jim

    Bdougr,
    Thanks for the reply, but it's a little over my head.
    Maybe I should give some more info. We store test parameters in a MSAccess database.
    Using LabView 7.1, I would like to retrieve a "record" or row based on a primary key (our part#)from a .mdb file and then use that data as my test parameters, I do not want to use the row# or record#. The database contains several tables so I also need to get to the specific table.
    I have figured out how to get a "feild" or the hole thing but I don't know how to return just one specific row.
    I have tried Select data, Fetch, Fetch all and Execute query VIs without success. Would "Execute query" be the way to do it? If so, what would be the correct SQL syntax to retrieve a record base on its primary key?
    Jim

  • Select single record per distinct type

    My test table is shown below, I needed to return just ONE invoice for each distinct prov_type
    PROV_TYPE INVOICE
    E 111
    E 222
    E 333
    AL 444
    I could use: SELECT distinct prov_type,
    min(invoice)
    FROM test_table
    Yields (one invoice per prov_type):
    Prov_type Invoice
    E 111
    AL 444
    But to extend this, how would I get the same result when
    there are more than just the 2 columns (prov_type and invoice)?
    Example data (selected from numerous tables):
    PROV_TYPE INVOICE SOME_DATES SCHEDULE
    E 111 JUNE 1 40A
    E 222 JUNE1 7A-C
    E 333 MAY 1 20C
    AL 444 JULY 1 7C-R
    I'm trying to select ONE invoice example of
    each prov_type.
    Is there any way to write something to
    get one record of each type of prov_type?....without having to execute the
    underlying where clause twice (once to get the distinct prov type and min
    invoice, and one to get the rest of the data for the invoice???)? I'm wondering this
    because the underlying where clause to get the above data set could be slow.
    I keep thinking there should be some way to select the above data set, and
    then somehow use a subquery or rownum or count(*) or something else to pick and choose the
    records I want from this set.
    Also, I have something similar to this where I select a bunch of data, and I
    want one record where a type column = R and one record where the same type
    column is NOT R. Same idea.. is there any way to select the "bunch of
    data" one time and manipulate the result set? Or do I have to:
    SELECT a_bunch_of_data
    FROM a_bunch_of_tables
    WHERE a_bunch_of_conditions
    AND the_type = 'R'
    AND rownum < 2
    UNION
    SELECT a_bunch_of_data (AGAIN)
    FROM a_bunch_of_tables (AGAIN)
    WHERE a_bunch_of_conditions (AGAIN)
    AND the_type <> 'R'
    AND rownum < 2

    Using PL/SQL AND/OR Dynamic SQL can simplify this. If your requirement
    is strictly SQL however, and your main goal is not to have to join
    anything else to your view, one (tricky) way would involve the following:
    1. get the data length of each needed column (except the key column) from the table definition.
    2. convert each of these column into character type, left padded to its data length
    3. concatenate these columns, with the target column in the front (e.g. Invoice Number)
    4. Apply the group function on the concatenated string, grouping by the key column.
    5. parse the string back
    This shouldn't be bad if you have to set it up only once!
    Note: for the second problem, you can use the same technique, with:
    GROUP BY DECODE(the_type,'R','R','Not R')
    CREATE TABLE test_table (
    PROV_TYPE VARCHAR2(10),
    INVOICE NUMBER,
    SOME_DATE DATE,
    SCHEDULE VARCHAR2(20),
    some_num_field NUMBER(5,3)
    INSERT INTO test_table VALUES('E',111,TO_DATE('JUN 1','MON DD'),'40A',12.123);
    INSERT INTO test_table VALUES('E',22,TO_DATE('JUN 1','MON DD'),'7A-C',3.04);
    INSERT INTO test_table VALUES('E',333,TO_DATE('MAY 1','MON DD'),'20C',1.4);
    INSERT INTO test_table VALUES('AL',444,TO_DATE('JUL 1','MON DD'),'7C-R',9);
    INSERT INTO test_table VALUES('Z',9,TO_DATE('JUL 1','MON DD'),'7C-R',12.123);
    INSERT INTO test_table VALUES('Z',123,TO_DATE('JUL 1','MON DD'),'7C-R',12.123);
    INSERT INTO test_table VALUES('Z',999,TO_DATE('JUL 1','MON DD'),'7C-R',99.999);
    SELECT
    PROV_TYPE,
    TO_NUMBER(SUBSTR(
    MIN(LPAD(invoice,38) &#0124; &#0124; TO_CHAR(some_date,'YYYYMMDDHH24MISS') &#0124; &#0124;
    LPAD(schedule,20) &#0124; &#0124; LPAD(some_num_field,39)),
    1,38)) invoice,
    TO_DATE(SUBSTR(
    MIN(LPAD(invoice,38) &#0124; &#0124; TO_CHAR(some_date,'YYYYMMDDHH24MISS') &#0124; &#0124;
    LPAD(schedule,20) &#0124; &#0124; LPAD(some_num_field,39)),
    38+1,14),'YYYYMMDDHH24MISS') some_date,
    LTRIM(SUBSTR(
    MIN(LPAD(invoice,38) &#0124; &#0124; TO_CHAR(some_date,'YYYYMMDDHH24MISS') &#0124; &#0124;
    LPAD(schedule,20) &#0124; &#0124; LPAD(some_num_field,39)),
    38+14+1,20)) schedule,
    TO_NUMBER(SUBSTR(
    MIN(LPAD(invoice,38) &#0124; &#0124; TO_CHAR(some_date,'YYYYMMDDHH24MISS') &#0124; &#0124;
    LPAD(schedule,20) &#0124; &#0124; LPAD(some_num_field,39)),
    38+14+20+1,39)) some_num_field
    FROM test_table
    GROUP BY prov_type
    /null

Maybe you are looking for

  • What's wrong with my iPhone 4?

    Today, while playing Plants vs. Zombies on my iPhone 4, the screen all of a sudden went black and the power shut off. I've tried resetting it by pressing both the home and lock buttons, but nothing happens. I also attempted to connect to iTunes, but

  • Copying data to member with member formula

    Hi All, How do I copy data to a member with member formula? For example, I have a member called "Opening_Balance_Rooms" this member has member formula so storage property is Dynamic Calc. It has data value of 1300 in local currency for post0+12 (Post

  • Creating formulas in Numbers - quick key to reference cells

    Former Excel person, moving over to Numbers -- very simple question on how I can use keystrokes to reference cells when creating a formula, rather than typing in the cell or using the mouse. In Excel would just type "=", then could use the arrows key

  • Text in Table format

    Hi, I am unable to paste my text in Table format from MS Word like I use to in Dir MX 2004... Do I need a plug-in now or do I need to do it the long way round, 1st make the text into HTML then do some scripting in Flash, export it and import it into

  • Inserting formatted text

    How can I insert formatted text into the sequence, keeping it transparent so I can show it over another clip? The text generator doesn't let me vary the text within one frame. So if I have, "The Doodad Theatre Production of, Don Juan" and want to mak