Select the desire to only one display limited the number of values

Hi guys,.

I have a choice of a select on my page I need to display a list of reports. There should be no restriction on the number of reports that can be created, and therefore, there should be no restrictions on the number shown in the choice of a select.

However, when the choice of a select 25 values in it, no more will appear later. I have to delete the old values for the most recent to be displayed I don't want.

Is there a way to make the choice hold a selection of more than 25 values?

Thank you
-Mark

Mark,

Have you gone into the definition of the page and changed the size of the range for the iterator-1?

John

Tags: Java

Similar Questions

  • Select the number of months (NULL and non-null separated)

    -Table_1
    -------------

    create table_1
    (
    Arrival_Date DATE
    Counter_seq number (*) not null,
    Exclusion_type varchar2 (10)
    )

    -INSERTION
    -------------

    INSERT INTO 'DW_DOCA '. "' TABLE_1 ' ('ARRIVAL_DATE', 'COUNTER_SEQ', 'EXCLUSION_TYPE') VALUES (TO_DATE('12-DEC-2009', 'dd-Mon-yyyy HH:MI:SS AM'), 1,");
    INSERT INTO 'DW_DOCA '. "' TABLE_1 ' ('ARRIVAL_DATE', 'COUNTER_SEQ', 'EXCLUSION_TYPE') VALUES (TO_DATE('12-JAN-2010', 'dd-Mon-yyyy HH:MI:SS AM'), 2, 'PAW');
    INSERT INTO 'DW_DOCA '. "' TABLE_1 ' ('ARRIVAL_DATE', 'COUNTER_SEQ', 'EXCLUSION_TYPE') VALUES (TO_DATE('28-DEC-2009', 'dd-Mon-yyyy HH:MI:SS AM'), 3, 'HAN');
    INSERT INTO 'DW_DOCA '. "' TABLE_1 ' ('ARRIVAL_DATE', 'COUNTER_SEQ', 'EXCLUSION_TYPE') VALUES (TO_DATE('12-FEB-2010', 'dd-Mon-yyyy HH:MI:SS AM'), 4,");
    INSERT INTO 'DW_DOCA '. "' TABLE_1 ' ('ARRIVAL_DATE', 'COUNTER_SEQ', 'EXCLUSION_TYPE') VALUES (TO_DATE('12-JAN-2010', 'dd-Mon-yyyy HH:MI:SS AM'), 5,"LUG");
    INSERT INTO 'DW_DOCA '. "' TABLE_1 ' ('ARRIVAL_DATE', 'COUNTER_SEQ', 'EXCLUSION_TYPE') VALUES (TO_DATE('28-JAN-2009', 'dd-Mon-yyyy HH:MI:SS AM'), 6, 'HAN');
    INSERT INTO 'DW_DOCA '. "' TABLE_1 ' ('ARRIVAL_DATE', 'COUNTER_SEQ', 'EXCLUSION_TYPE') VALUES (TO_DATE('12-DEC-2009', 'dd-Mon-yyyy HH:MI:SS AM'), 7,");
    INSERT INTO 'DW_DOCA '. "' TABLE_1 ' ('ARRIVAL_DATE', 'COUNTER_SEQ', 'EXCLUSION_TYPE') VALUES (TO_DATE('12-FEB-2010', 'dd-Mon-yyyy HH:MI:SS AM'), 8, 'PAW');
    INSERT INTO 'DW_DOCA '. "' TABLE_1 ' ('ARRIVAL_DATE', 'COUNTER_SEQ', 'EXCLUSION_TYPE') VALUES (TO_DATE('28-JAN-2010', 'dd-Mon-yyyy HH:MI:SS AM'), 9, 'HAN');
    INSERT INTO 'DW_DOCA '. "' TABLE_1 ' ('ARRIVAL_DATE', 'COUNTER_SEQ', 'EXCLUSION_TYPE') VALUES (TO_DATE('12-FEB-2010', 'dd-Mon-yyyy HH:MI:SS AM'), 10,");
    INSERT INTO 'DW_DOCA '. "' TABLE_1 ' ('ARRIVAL_DATE', 'COUNTER_SEQ', 'EXCLUSION_TYPE') VALUES (TO_DATE('12-DEC-2010', 'dd-Mon-yyyy HH:MI:SS AM'), 11, 'PAW');
    INSERT INTO 'DW_DOCA '. "' TABLE_1 ' ('ARRIVAL_DATE', 'COUNTER_SEQ', 'EXCLUSION_TYPE') VALUES (TO_DATE('28-JAN-2010', 'dd-Mon-yyyy HH:MI:SS AM'), 12, 'HAN');
    INSERT INTO 'DW_DOCA '. "' TABLE_1 ' ('ARRIVAL_DATE', 'COUNTER_SEQ', 'EXCLUSION_TYPE') VALUES (TO_DATE('12-DEC-2009', 'dd-Mon-yyyy HH:MI:SS AM'), 13,");
    INSERT INTO 'DW_DOCA '. "' TABLE_1 ' ('ARRIVAL_DATE', 'COUNTER_SEQ', 'EXCLUSION_TYPE') VALUES (TO_DATE('12-FEB-2010', 'dd-Mon-yyyy HH:MI:SS AM'), 14,"LUG");
    INSERT INTO 'DW_DOCA '. "' TABLE_1 ' ('ARRIVAL_DATE', 'COUNTER_SEQ', 'EXCLUSION_TYPE') VALUES (TO_DATE('28-JAN-2010', 'dd-Mon-yyyy HH:MI:SS AM'), 15,");
    INSERT INTO 'DW_DOCA '. "' TABLE_1 ' ('ARRIVAL_DATE', 'COUNTER_SEQ', 'EXCLUSION_TYPE') VALUES (TO_DATE('12-FEB-2010', 'dd-Mon-yyyy HH:MI:SS AM'), 16,"LUG");
    INSERT INTO 'DW_DOCA '. "' TABLE_1 ' ('ARRIVAL_DATE', 'COUNTER_SEQ', 'EXCLUSION_TYPE') VALUES (TO_DATE('12-JAN-2010', 'dd-Mon-yyyy HH:MI:SS AM'), 17,");
    INSERT INTO 'DW_DOCA '. "' TABLE_1 ' ('ARRIVAL_DATE', 'COUNTER_SEQ', 'EXCLUSION_TYPE') VALUES (TO_DATE('28-JAN-2010', 'dd-Mon-yyyy HH:MI:SS AM'), 18,");
    INSERT INTO 'DW_DOCA '. "' TABLE_1 ' ('ARRIVAL_DATE', 'COUNTER_SEQ', 'EXCLUSION_TYPE') VALUES (TO_DATE('12-DEC-2009', 'dd-Mon-yyyy HH:MI:SS AM'), 19, 'HAN');
    INSERT INTO 'DW_DOCA '. "' TABLE_1 ' ('ARRIVAL_DATE', 'COUNTER_SEQ', 'EXCLUSION_TYPE') VALUES (TO_DATE('12-DEC-2009', 'dd-Mon-yyyy HH:MI:SS AM'), 20,");
    INSERT INTO 'DW_DOCA '. "' TABLE_1 ' ('ARRIVAL_DATE', 'COUNTER_SEQ', 'EXCLUSION_TYPE') VALUES (TO_DATE('28-FEB-2010', 'dd-Mon-yyyy HH:MI:SS AM'), 21,"LUG");
    INSERT INTO 'DW_DOCA '. "' TABLE_1 ' ('ARRIVAL_DATE', 'COUNTER_SEQ', 'EXCLUSION_TYPE') VALUES (TO_DATE('12-JAN-2010', 'dd-Mon-yyyy HH:MI:SS AM'), 22,"LUG");
    INSERT INTO 'DW_DOCA '. "' TABLE_1 ' ('ARRIVAL_DATE', 'COUNTER_SEQ', 'EXCLUSION_TYPE') VALUES (TO_DATE('12-DEC-2009', 'dd-Mon-yyyy HH:MI:SS AM'), 23,"HAN");
    INSERT INTO 'DW_DOCA '. "' TABLE_1 ' ('ARRIVAL_DATE', 'COUNTER_SEQ', 'EXCLUSION_TYPE') VALUES (TO_DATE('28-JAN-2010', 'dd-Mon-yyyy HH:MI:SS AM'), 24,");
    INSERT INTO 'DW_DOCA '. "' TABLE_1 ' ('ARRIVAL_DATE', 'COUNTER_SEQ', 'EXCLUSION_TYPE') VALUES (TO_DATE('12-FEB-2010', 'dd-Mon-yyyy HH:MI:SS AM'), 25,");
    INSERT INTO 'DW_DOCA '. "' TABLE_1 ' ('ARRIVAL_DATE', 'COUNTER_SEQ', 'EXCLUSION_TYPE') VALUES (TO_DATE('28-DEC-2010', 'dd-Mon-yyyy HH:MI:SS AM'), 26,"LUG");
    INSERT INTO 'DW_DOCA '. "' TABLE_1 ' ('ARRIVAL_DATE', 'COUNTER_SEQ', 'EXCLUSION_TYPE') VALUES (TO_DATE('12-FEB-2010', 'dd-Mon-yyyy HH:MI:SS AM'), 27,");


    -SELECT THE NUMBER OF MONTHS
    --------------------------------------

    SELECT EXCLUSION_TYPE,
    County (decode (to_char (ARRIVAL_DATE, 'MON-YYYY'), "DEC-2009", COUNTER_SEQ ")) dec09,.
    County (decode (to_char (ARRIVAL_DATE, ' MON-YYYY ""), "JAN-2010", COUNTER_SEQ ")) Jan10.
    County (decode (to_char (ARRIVAL_DATE, 'MON-YYYY'), ' Feb-2010 ", COUNTER_SEQ")) Feb10
    FROM TABLE_1
    EXCLUSION_TYPE GROUP;


    -CHOOSE IT ABOVE RETURENS: -.
    ------------------------------------------------


    EXCLUSION_ DEC09 JAN10 FEV10
    4 4 4
    0 3 4 LEG
    HAN 3 2 0


    My question is, I need to select a month ruturning one row of NULL values and a line of values not null. Like that so all right: -.

    EXCLUSION_ DEC09 JAN10 FEV10
    Exclusion_Type 4 4 4 NULL
    Exclusion_Type Not null 3 5 4

    The ideas people?

    Published by: Deeds_2001 on November 16, 2010 12:47 AM
    SQL> SELECT DECODE(exclusion_type,NULL,'NULL','NOT NULL') exclusion_type,
      2  COUNT(DECODE(TO_CHAR(arrival_date, 'MON-YYYY'), 'DEC-2009', counter_seq)) Dec09,
      3  COUNT(DECODE(TO_CHAR(arrival_date, 'MON-YYYY'), 'JAN-2010', counter_seq)) Jan10,
      4  COUNT(DECODE(TO_CHAR(arrival_date, 'MON-YYYY'), 'FEB-2010', counter_seq)) Feb10
      5  FROM table_1
      6  GROUP BY DECODE(exclusion_type,NULL,'NULL','NOT NULL');
    
    EXCLUSIO      DEC09      JAN10      FEB10
    -------- ---------- ---------- ----------
    NULL              4          4          4
    NOT NULL          3          5          4
    
    SQL> 
    
  • Count the number of values selected in a form

    Hello

    I need to count the number of values in a form.

    Here's my dump of the form:

    countForm.png

    I want to count the values encircled in red.

    The number I want to, so in this case is 5.

    Any suggestions?

    Aegis,

    Yes, good point.  Here's a minor tweak:

    Total: #total #.

    -Carl V.

  • How to change the number of values in the hour that are restricted.

    Hello

    May I know how to change the number of values in the hour that are restricted.

    In fact, we have improved of obiee in obiee 11g 10g. Data base is the same for Both.In 10 g the prompt value is limited to show only 35 records per page. As we passed it shows only 35 Records in 11g also. How can I change this limit to 11g.

    Please suggest me! Its urgent!

    Thanks and greetings

    Navnitha

    Hello

    In the advance tab we have the XML of the upgraded report, copy it into a Notepad and try to find the line beginning as below

    In 10g, we have something like below, simply remove the choicesPerPage = '35' from 11 g OBIEE XML report

    Thank you

    RAM

  • limit the number of values, you can choose in the filter

    Hi all

    Is there a way to limit the number of values, we can check in the filter response obiee? for instance in the status column, can we put the limit that only 5 States can be selected in the response of obiee.

    Appreciate your suggestions.

    Thank you

    Sushil

    Not sure it works but around something like;

    Give a note about only 5 values considered in the report;

    in the report use this column, filter on rcompte rcompte<>

  • Select a choice limited the number of values

    Hello
    I have the choice of a select, and it is only the display value 25. but the view contains more than that and I want all of them to be displayed.
    Thank you

    User,

    Versions + technologies?

    A hint (if you use certain technologies ADF) - look in the page definition to set the size of the beach for the iterator on which is based the af: selectOneChoice (you need it to be-1 and not 25).

    John

  • you need to recover only one type of phone number

    Hello

    In the following example query, I need to recover only one phone number. The preference is if available Mobile - mobile phone number if this is house number (Type - H1), work a different number (W1).

    I've included the script and the sample output that I get from the SQL

    Thanks in advance

    Concerning
    Sriram
    select pp.ph_id
    ,papf.person_id
    ,pp.ph_type
    ,pp.ph_no
    ,pp.date_from
    ,pp.date_to
    from per_phones                      pp
    ,per_all_people_f                    papf
    ,per_contact_relationships           pcr
    where papf.person_id = pp.parent_id
    and pcr.person_id = papf.person_id
    and trunc(sysdate) between trunc(nvl(pcr.date_start, sysdate-1))
    and trunc(nvl(pcr.date_end, sysdate+1))
    and papf.person_id in (146564, 514)
    and pcr.primary_contact_flag  = 'Y'
    and trunc(sysdate) between papf.effective_start_date and papf.effective_end_date
    and trunc(sysdate) between nvl(pp.date_from, sysdate-1) and nvl(pp.date_to, sysdate+1);
    output
    PH_ID     PERSON_ID     PH_TYPE     PH_NO     DATE_FROM     DATE_TO
    3261     514          H1          987524879     13-Jun-04     
    117287     514          M          0403672797     11-May-05     
    141997     146564          H1          54789620     15-Feb-06     05-Mar-10
    311028     146564          H2          235469          5-Dec-09     
    311029     146564          W1          8300054          15-Dec-09     
    311108     146564          M          04126872     12-Feb-10

    You can also try

     select max(pp.ph_id) keep (dense_rank first order by decode(pp.ph_type, 'M',1,'H1',2, 'W1',3), ph_id,
           pp.person_id,
           max(pp.ph_type) keep (dense_rank first order by decode(pp.ph_type, 'M',1,'H1',2, 'W1',3), ph_type,
           max(pp.ph_no) keep (dense_rank first order by decode(pp.ph_type, 'M',1,'H1',2, 'W1',3), ph_no,
           max(pp.date_from) keep (dense_rank first order by decode(pp.ph_type, 'M',1,'H1',2, 'W1',3), date_from,
           max(pp.date_to) keep (dense_rank first order by decode(pp.ph_type, 'M',1,'H1',2, 'W1',3),date_to
      from per_phones pp, per_all_people_f papf, per_contact_relationships pcr
     where papf.person_id = pp.parent_id and pcr.person_id = papf.person_id
           and trunc (sysdate) between trunc (nvl (pcr.date_start, sysdate - 1)) and trunc (nvl (pcr.date_end, sysdate + 1))
           and papf.person_id in (146564, 514)
           and pcr.primary_contact_flag = 'Y'
           and trunc (sysdate) between papf.effective_start_date and papf.effective_end_date
           and trunc (sysdate) between nvl (pp.date_from, sysdate - 1) and nvl (pp.date_to, sysdate + 1)
    group by pp.person_id;
    

    Published by: michaels2 on February 25, 2010 08:50

    probably, you want to just group by person_id

  • [ADF 11.1.1.4.0] How to know selected the number of lines without writing a bean

    How to know the number of lines selected in ADF Table with EL Expression. We have estimatedRowCount (which gives the number of rows in the table) but I use cases where I want to activate a button (lets say 'Show' button) only when the selected row counts is '1' (not less or more) without writing ManagedBean.

    You can follow my previous suggestion with a little change in the EL IE, without backing bean comes directly set table in the backingBeanScope instance.

    For example.
    #{! (backingBeanScope.t1.selectedRowKeys.size eq 1)} (notice no backing_table)

    and bind the table binding property #{backingBeanScope.t1}

    With the above code, there is no need to have a bean reinforcement or all java code, table instance will be called directly from backingBeanScope

    Sample:

    
    .
    .
    
    
       
    

    Jean Lou

  • limit the number of values in the listagg function and create several games

    Hi all

    I have a requirement where I would like to group one of the fields in a field based on the number of records. Lets say if we have an employee with multiple CODEZONE. Please see the example below. I want concatenation of each 10 EMPNO records into one. If she has more than 10 records for a given EMPNO, it should show in the form of another record.
    For example:
    EMPNO CODEZONE
    A111 AL
    A111 AK
    A111 AZ
    A111 AR
    A111 CA
    A111 CO
    A111 CT
    TO A111
    A111 DC
    A111 FL
    A111 GA
    A111 HI
    B222 AL
    B222 AK
    B222 AZ
    B222 AI
    B222 KS
    B222 KY
    THE B222
    B222 ME
    B222 MD
    MY B222
    B222 MI
    B222 CA
    B222 CO
    B222 CT
    B222 OF

    Result set:
    EMPNO CODEZONE
    A111 AL | AK | AZ | AR | CA | CO | CT | OF | DC | FL
    A111 GA | HI
    B222 AL | AK | AZ | AI | KS |     KY | THE | ME | MD | MY
    B222 MI | CA | CO | CT | OF

    The above example can have any number of area CODE for a given EMPNO, the end result should show only a maximum of 10 codes for an EMPNO in each record. If she has more than 10 CODEZONE, it should show as another record. Please provide me with a generic statement to solve this problem. I was not able to control by setting the limit on records for an EMPNO gave to the LISTAGG function. Any ideas are much appreciated.

    Thank you

    1008754 wrote:
    Hi all

    I have a requirement where I would like to group one of the fields in a field based on the number of records. Lets say if we have an employee with multiple CODEZONE. Please see the example below. I want concatenation of each 10 EMPNO records into one. If she has more than 10 records for a given EMPNO, it should show in the form of another record.
    For example:
    EMPNO CODEZONE
    A111 AL
    A111 AK
    A111 AZ
    A111 AR
    A111 CA
    A111 CO
    A111 CT
    TO A111
    A111 DC
    A111 FL
    A111 GA
    A111 HI
    B222 AL
    B222 AK
    B222 AZ
    B222 AI
    B222 KS
    B222 KY
    THE B222
    B222 ME
    B222 MD
    MY B222
    B222 MI
    B222 CA
    B222 CO
    B222 CT
    B222 OF

    Result set:
    EMPNO CODEZONE
    A111 AL | AK | AZ | AR | CA | CO | CT | OF | DC | FL
    A111 GA | HI
    B222 AL | AK | AZ | AI | KS |     KY | THE | ME | MD | MY
    B222 MI | CA | CO | CT | OF

    The above example can have any number of area CODE for a given EMPNO, the end result should show only a maximum of 10 codes for an EMPNO in each record. If she has more than 10 CODEZONE, it should show as another record. Please provide me with a generic statement to solve this problem. I was not able to control by setting the limit on records for an EMPNO gave to the LISTAGG function. Any ideas are much appreciated.

    Thank you

    ME_XE?with data (empno, areacode) as
      2  (
      3     select 'A111', 'AL' from dual union all
      4     select 'A111', 'AK' from dual union all
      5     select 'A111', 'AZ' from dual union all
      6     select 'A111', 'AR' from dual union all
      7     select 'A111', 'CA' from dual union all
      8     select 'A111', 'CO' from dual union all
      9     select 'A111', 'CT' from dual union all
     10     select 'A111', 'DE' from dual union all
     11     select 'A111', 'DC' from dual union all
     12     select 'A111', 'FL' from dual union all
     13     select 'A111', 'GA' from dual union all
     14     select 'A111', 'HI' from dual union all
     15     select 'B222', 'AL' from dual union all
     16     select 'B222', 'AK' from dual union all
     17     select 'B222', 'AZ' from dual union all
     18     select 'B222', 'IA' from dual union all
     19     select 'B222', 'KS' from dual union all
     20     select 'B222', 'KY' from dual union all
     21     select 'B222', 'LA' from dual union all
     22     select 'B222', 'ME' from dual union all
     23     select 'B222', 'MD' from dual union all
     24     select 'B222', 'MA' from dual union all
     25     select 'B222', 'MI' from dual union all
     26     select 'B222', 'CA' from dual union all
     27     select 'B222', 'CO' from dual union all
     28     select 'B222', 'CT' from dual union all
     29     select 'B222', 'DE' from dual
     30  )
     31  select
     32     empno, listagg(areacode, ',') within group (order by emp_grp)   as emp_list
     33  from
     34  (
     35     select
     36             ceil(row_number() over (partition by empno order by areacode) / 10) as emp_grp,
     37             empno,
     38             areacode
     39     from data
     40  )
     41  group by empno, emp_grp;
    
    EMPNO                          EMP_LIST
    ------------------------------ ------------------------------
    A111                           AK,AL,AR,AZ,CA,CO,CT,DC,DE,FL
    A111                           GA,HI
    B222                           AK,AL,AZ,CA,CO,CT,DE,IA,KS,KY
    B222                           LA,MA,MD,ME,MI
    
    4 rows selected.
    
    Elapsed: 00:00:00.05
    ME_XE?
    

    In the future, it would be nice if you could provide baseline data.

    See you soon,.

  • How can I increase the number of value, OPEN_CURSORS...

    Hi all

    I will carry out more than 4,500 insert statements in a table, and at some point that I get this error maximum open cursors exceeded, I searched the Internet and found the answers why it is implemented.

    How can I increase the number of OPEN_CURSORS? Is it possible to over 4000?

    Thank you.

    How can I increase the number of OPEN_CURSORS? Is it possible to over 4000?

    .
    Try this,

    change the system
    set open_cursors = 4000;

    While increasing the number of more than 10000 there are a of other factors to consider as the sizes of pga, LMS etc.

  • Distribution of load among the groups, only one thread limited to physical CPU (&amp; memory)?

    I was not able to discern, documentation, I read so well how the load of a virtual machine is distributed should the load exceeds the limits of one CPU heart.

    At what level is the distributed load between the physical processors cores and especially between physical servers?

    At the level of the Virtual Machines,

    At the level of the process.

    At the level of the threads, or

    Somehow secondary thread?

    I'll ask another way; the ESX provides virtual processors that exceed the capacity of the hearts of single-processor or single servers, which also has the ability to run a single thread that consumes the entire capacity of the virtual processor?

    Can someone point me in the right direction?

    There is good documentation for this issue?

    AiwarikiaR-

    I don't think that it is wrong, unless you only have 1 VM.

    If you have more 1VM, with the processors maintain will almost always help them performance.

    best place to like this doco is VMWorld transcripts and VMware classes.

    -Matt

  • Simply select the number

    Art. 153 143 is what I have. I want to select only the middle (here 153) number, not the spaces that surround them and apply the style of tank (the last part is easy, it's no problem).

    Art. 153 (inexp art. 143) is an another notation where I have the same problem, by selecting only the 153, nothing else.

    The real problem: art. 153 may exist too and then nothing should be undelined.

    Try this:

    ( ? i) (?<>

    and

    ( ? i) (?<=art.\s)\d{3}(?=\s\(vroeger>

  • How to select the lines whose value min on a specific column

    I have a query:

    Select

    m.X1,

    round (to_date (l.y1, ' dd/mm/yyyy hh: mi: SS AM')-m.x 2, 0) as numofdays

    Of

    Table 1 m,

    Table2 l

    where

    l.x3 = m.x3 and

    TO_DATE (l.y1, ' mm/dd/yyyy hh: mi: SS AM' ') > = TO_DATE('01012013','MMDDYYYY') and

      ... ;

    and I got this result table:

    x 1 (ID) NumOfDays
    0015

    001

    1000220033003140 °000566......

    several IDs have several values on the second column, I want to have only separate IDs with smaller "numofdays' like this:

    x 1 (ID) NumOfDays
    0015
    0022
    0031
    0040
    00566
    ......

    Any ideas?

    Hello

    The more general and more versatile way is a Request of Top - N:

    WITH got_r_num AS

    (

    Select

    m.X1,

    round (to_date (l.y1, ' dd/mm/yyyy hh: mi: SS AM')-m.x 2, 0) as numofdays

    ROW_NUMBER () OVER (PARTITION BY m.x1

    ORDER BY to_date (l.y1, ' mm/dd/yyyy hh: mi: SS AM' ')-m.x 2

    ) AS r_num

    Of

    Table 1 m,

    Table2 l

    where

    l.x3 = m.x3 and

    TO_DATE (l.y1, ' mm/dd/yyyy hh: mi: SS AM' ') > = TO_DATE('01012013','MMDDYYYY') and

    ...

    )

    SELECT x 1, numofdays

    OF got_r_num

    WHERE r_num = 1

    ;

    If you would care to post CREATE TABLE and INSERT statements for your sample data, then I could test it.

    Note that the subquery (got_r_num) is exactly what you have posted, only with a new column (r_num) added to the SELECT clause.

  • Select the rows with values max.

    SELECT MOFFER.DELIVERYPURCHASE,
      MOFFER.OFFERSTART,
      MOFFER.OFFEREND,
      MOFFER.RANKING,
      MMTDEMANDBID.BALANCEGROUPPK
    FROM EMTMOFFER MOFFER
    INNER JOIN MMTDEMANDBID ON MOFFER.OFFERID = MMTDEMANDBID.MMTDEMANDBIDPK
    WHERE MOFFER.DELIVERYPURCHASE = 'P'
    AND MOFFER.OFFERSTART        >= '2012-01-18T00:00:00'
    AND MOFFER.OFFEREND          <= '2012-01-19T00:00:00'
    AND MMTDEMANDBID.BALANCEGROUPPK = '10393'
    DELIVERYPURCHASE OFFERSTART          OFFEREND            RANKING                BALANCEGROUPPK         
    ---------------- ------------------- ------------------- ---------------------- ---------------------- 
    *P                2012-01-18T23:00:00 2012-01-19T00:00:00 2                      10393*                  
    P                2012-01-18T23:00:00 2012-01-19T00:00:00 3                      10393                  
    P                2012-01-18T00:00:00 2012-01-18T01:00:00 2                      10393                  
    P                2012-01-18T01:00:00 2012-01-18T02:00:00 2                      10393           
    *P                2012-01-18T02:00:00 2012-01-18T03:00:00 1                      10393*         
    P                2012-01-18T02:00:00 2012-01-18T03:00:00 2                      10393                  
    P                2012-01-18T03:00:00 2012-01-18T04:00:00 2                      10393                  
    P                2012-01-18T04:00:00 2012-01-18T05:00:00 2                      10393                  
    *P                2012-01-18T05:00:00 2012-01-18T06:00:00 1                      10393*
    P                2012-01-18T05:00:00 2012-01-18T06:00:00 2                      10393                  
    P                2012-01-18T06:00:00 2012-01-18T07:00:00 2                      10393                  
    P                2012-01-18T07:00:00 2012-01-18T08:00:00 2                      10393                  
    P                2012-01-18T08:00:00 2012-01-18T09:00:00 2                      10393                  
    P                2012-01-18T09:00:00 2012-01-18T10:00:00 2                      10393                  
    P                2012-01-18T10:00:00 2012-01-18T11:00:00 2                      10393                  
    P                2012-01-18T11:00:00 2012-01-18T12:00:00 2                      10393                  
    P                2012-01-18T12:00:00 2012-01-18T13:00:00 1                      10393                  
    P                2012-01-18T13:00:00 2012-01-18T14:00:00 1                      10393                  
    P                2012-01-18T14:00:00 2012-01-18T15:00:00 1                      10393                  
    P                2012-01-18T15:00:00 2012-01-18T16:00:00 2                      10393                  
    P                2012-01-18T16:00:00 2012-01-18T17:00:00 2                      10393                  
    P                2012-01-18T17:00:00 2012-01-18T18:00:00 2                      10393                  
    P                2012-01-18T18:00:00 2012-01-18T19:00:00 2                      10393                  
    P                2012-01-18T19:00:00 2012-01-18T20:00:00 2                      10393                  
    P                2012-01-18T20:00:00 2012-01-18T21:00:00 2                      10393                  
    P                2012-01-18T21:00:00 2012-01-18T22:00:00 2                      10393                  
    P                2012-01-18T22:00:00 2012-01-18T23:00:00 2                      10393                  
     27 rows selected 
    Help, please. How to select lines with RANKING max, OFFERSTART and OFFEREND if the same.
    Get 24 ranks. One for every hour.

    SELECT MOFFER. DELIVERYPURCHASE,
    MOFFER. OFFERSTART,
    MOFFER. OFFEREND,
    Max (MOFFER. (Rank CLASSIFICATION),
    MMTDEMANDBID. BALANCEGROUPPK
    OF EMTMOFFER MOFFER
    INNER JOIN MMTDEMANDBID ON MOFFER. OFFERID = MMTDEMANDBID. MMTDEMANDBIDPK
    WHERE MOFFER. DELIVERYPURCHASE = 'P '.
    AND MOFFER. OFFERSTART > = ' 2012 - 01-18T 00: 00:00'
    AND MOFFER. OFFEREND<=>
    AND MMTDEMANDBID. BALANCEGROUPPK = '10393'
    Group of MMTDEMANDBID. BALANCEGROUPPK, deliverypurchase, offerstart, offerend

  • Need to select the number to varchar

    Hello

    I have a strring as (RAZOR_LADIES_TRPLE_100/CS)... .i want to choose only 100 in this one... We can do to help locate the function 11 g... am unable to write the appropriate syntax... Any help will be much appreciated

    Concerning
    Debo

    Hello

    You can try the formula below in your fx:

    SUBSTRING ("RAZOR_LADIES_TRPLE_100/CS" (LOCATE ('_', ' RAZOR_LADIES_TRPLE_100/CS', LOCATE ('_', ' RAZOR_LADIES_TRPLE_100/CS', LOCATE('_','RAZOR_LADIES_TRPLE_100/CS') + 1) + 1) + 1) for (POSITION ('/ ' in 'RAZOR_LADIES_TRPLE_100/CS')-(LOCATE ('_', ' RAZOR_LADIES_TRPLE_100/CS', LOCATE ('_', ' RAZOR_LADIES_TRPLE_100/CS', LOCATE('_','RAZOR_LADIES_TRPLE_100/CS') + 1) + 1) + 1)))

    Here, replace ' RAZOR_LADIES_TRPLE_100/CS' with your actual column name. That means this formula is that it takes the characters after the 3rd line of underscores (_) and up to the slash (/).

    In addition, you can check out the post below:
    Re: extract a portion of a string in a string full

    Thank you

Maybe you are looking for

  • Re: Satellite A135-S7404: need a link to the XP drivers

    Hello I am a new user. I would like to get links to drivers for laptop Toshiba Satellite A135-S7404 for Windows XP. Thank you.

  • SpeedyPC pro will interfere with mcafee

    I have XP with McAfee since 2006. I would like to run SpeedyPC Pro, but I'm worried it they may interfere with eachother. And, because this old computer is faced with time control for which I don't have the password, I can't remove McAfee. Can I down

  • Hotmail account password recovery

    I forgot my password for my email account. I received an email of confirmation that my reset password would be sent to my e-mail account of relief on February 7, still have not received the email with the password reset. Also the password reset link

  • can error of Bex-how I fix

    When I open the original application crashes and this is the error I get Signature of the problem:Problem event name: BEXApplication name: Origin.exeApplication version: 9.4.7.2799Application timestamp: 534f0142Fault Module name: MSVCR100.dllFault Mo

  • Sizes of blackBerry Smartphones Micro SD card

    What is the Micro SD card maximum size that I can use in this phone? I want to buy a 16 Gig card but do not know if it will work on my phone or not and I can't find that information to determine if it will work or not. Please be gentle with me, this