Return first row entered based on date column

I'm trying to select the first entered row in a table, as judged by the datetime column. If more than one row has the same date and time, then only one row should be returned (any row having that datetime is fine). Some processing will occur on that row and then it will be deleted. The select statement is used thereafter to select the next (first) entered row in the table, etc. This way, the rows are processed first-in first-out (FIFO) style. Here's my example table:
create table my_table
datetime date,
firstname varchar2(50)
insert into my_table(datetime, firstname) values(to_date('2012-04-02 11:00:00', 'YYYY-MM-DD HH24:MI:SS'),'ken');
insert into my_table(datetime, firstname) values(to_date('2012-04-02 11:00:00', 'YYYY-MM-DD HH24:MI:SS'),'john');
insert into my_table(datetime, firstname) values(to_date('2012-04-02 11:00:00', 'YYYY-MM-DD HH24:MI:SS'),'sue');
commit;
Here's my example select statement, which returns simply one row of the above, since all are the same date and time:
SELECT *
FROM my_table
WHERE datetime = ( select min(datetime) from my_table )
AND rownum = 1;
My question is, if I use the following
SELECT *
FROM my_table
WHERE datetime = ( select min(datetime) from my_table );
It returns all 3 rows:
DATETIME FIRSTNAME
02-APR-12 11:00:00 ken
02-APR-12 11:00:00 john
02-APR-12 11:00:00 sue
So, wouldn't setting rownum = 2 return john, and rownum = 3 return sue? For example,
SELECT *
FROM my_table
WHERE datetime = ( select min(datetime) from my_table )
AND rownum = 2;
return no rows. I just want to make sure I'm understanding how the select statement above works. It seems to work fine for returning one row having the minimum date and time. If this is always the case, then everything is fine. But I wouldn't have expected it not to return one of the other rows when rownum is 2 or 3, which makes me question why? Maybe I can learn something here. Any comments much appreciated.
Edited by: tem on Apr 2, 2012 2:06 PM

Hi,
tem wrote:
... So, wouldn't setting rownum = 2 return john, and rownum = 3 return sue? For example,, ROWNUM
SELECT *
FROM my_table
WHERE datetime = ( select min(datetime) from my_table )
AND rownum = 2;
return no rows. I just want to make sure I'm understanding how the select statement above works. It seems to work fine for returning one row having the minimum date and time. If this is always the case, then everything is fine. But I wouldn't have expected it not to return one of the other rows when rownum is 2 or 3, which makes me question why? Maybe I can learn something here. Any comments much appreciated.ROWNUM is assigned as rows are fetched and considered for inclusion in the result set. If the row is not chosen for any reason, the same ROWNUM will be reused with the next row fetched. ROWNUM=2 will not be assigned until a row with ROWNUM=1 has been included in hte result set.
So, in your example:
SELECT  *
FROM    my_table
WHERE   datetime = ( select min(datetime) from my_table )
AND     rownum = 2;Say the first row that happens to be fetched has firstname='ken'. It is assigned ROWNUM=1, and fails the WHERE clause condition "WHERE rownum = 2".
Say the next row fetched has firstname='john'. ROWNUM=1 hasn't been used yet, so this row is also assigned ROWNUM=1, and it fails the WHERE clause for the same reason. Likewise with the next row; it also is assigned ROWNUM=1, and it also fails.
When using ROWNUM in a WHERE clause, you almost always want to say "ROWNUM = 1" or "ROWNUM <= n".
You could also use the analytic ROW_NUMBER function:
WITH     got_r_num     AS
     SELECT     datetime, firstname
     ,     ROW_NUMBER () OVER (ORDER BY  datetime)     AS r_num
     FROM     my_table
SELECT     datetime, firstname
FROM     got_r_num
WHERE     r_num     = 1
;Here, all values of r_num are available, so it would make sense to say things like "WHERE r_num = 2" or "WHERE r_num >= 2".
Edited by: Frank Kulash on Apr 2, 2012 5:31 PM
Added to explanation.

Similar Messages

  • How to provide formulae for the columns in report based on date column

    Hi,
    How can we provide formulae for the columns in report, where each column is based on another Date Column.
    Can anyone suggest on this.
    Thanks

    Hi Manu,
    I think you a logical column X on which you created another Logical Column Y.
    Now you want 'Y' to be filtered based on Date Column.
    1. If, my assumption is right - You can do your requirement i.e. Filtering the logical col. 'Y' on Reports.
    Else,
    2. See - Your Logical column 'Y' While creating log. column 'Y' make sure you use any expression builder to filter across Date column. (i.e. using any case statements or where clause).
    Else,
    3. Make sure your First Logical column comes from Table by default (i.e. Create the same col. in d/b so it would be your Physic col. )
    Thank you.
    Edited by: GRK on Jan 28, 2013 7:48 AM

  • Dynamically adjust table row height based on data in column

    Hi all,
    I'm using JDeveloper 11.1.1.5.0 and have a requirement for a table to adjust the height of its rows depending on the data in the columns. One of the columns in the table is a rich text description field and I have the 'rows' property set to 13. This field could have twenty lines of text/images or just one. The users would like the page to show all twenty lines of text without having to scroll but the table has the same height for all the rows (that I set to 13) and provides a scroll bar when the data exceeds this size. My users do not like to scroll, and want the height of each row to be determined by the data in it. I looked at a few options and also did a search online, but was unable to find anything to fulfill this requirement. Do you know of how I could change the height of each row in the table so that it fits the data that it holds?
    I have an example of my table at: <b>Table with Set Row Height</b>
    As you see, the picture has to be scrolled so that the whole picture is visible. The user requirement is to adjust the row height to show the full picture. Ideally the next two rows would shrink, but that would be a nice to have.
    Thanks in advance for any pointers or help.

    Hi Frank,
    Thank you for replying to my question, I truly appreciate your help.
    I tried to use the autoHeightRows to adjust the height of my rows but was unsuccessful. If I understand the autoHeightRows property correctly, this is used for setting the height of the whole table. If this is incorrect and it can be used for setting the height of individual rows in the table, please correct me. I have the 'Rows' property of the richTextEditor set to 13 and this is the height that I would like to make dynamic based on the data.
    My users requirement is for the height to be big enough for the data in each row of the table (the table has a description column and the height of each row should be determined by the data contained in it). I updated my <u><b>Screen Shot</b></u> to show the desired layout and what is currently being generated though ADF (http://www.flickr.com/photos/87583386@N05/) .
    I have three rows in the example (in actuality these are around 50) and the text in each row can vary. The users would like to see the full text/image in each row without having to scroll each row. Currently my table is within Panel Box, which is inside a PanelGroupLayout-Scroll which is in a PanelStretchLayout. I tried to put the table by itself with the autoHeightRow modifications you suggested but thsi did not help either. I am using JDeveloper 11.1.1.6.
    Is this possible with an ADF Table? If it is, is the autoHeight property the only one that I am setting incorrectly? If not, is there another component I can use to get the desired functionality? My users are very strict about this requirement and will not accept the application without this.
    Thanks,

  • 64-bit driver only returns first row of table

    I have a C++ application using ADO (the MSADO COM components) and the Oracle OLEDB provider for database access. The application works fine on a 32-bit computer using the 32-bit Oracle client and driver. However, when I run a 64-bit build of the application, running on a 64-bit computer (Windows Server 2008 x64), using the 64-bit Oracle client and driver, a SELECT operation returns only the first row of the table.
    Note that this is only happening with the ActiveX ADO components. ADO.NET is not having a problem.
    In both cases I am connecting to the same database, which is Oracle 10.2 (32-bit) running on a different server. I have tested with Oracle client 10.2.0.4 and 11.1.0.7 and got the same result in both cases.
    I have reproduced the issue with a simple table (one column, NVARCHAR2(255)) and simple code.
    In the code, I execute "select count(*) from tablename" and get the correct record count (more than one record). But when I then open the recordset ("select columnname from tablename"), ADO reports EndOfFile after I have read the first row and called MoveNext on the recordset.
    My Oracle knowledge is limited so I don't know if there are driver properties I should be checking.
    Anyone have ideas?
    Thanks in advance.

    For 10.2 it's fixed in 10204 Patch 21 and higher.
    For 11.1 it's fixed in 11107 Patch 12 and higher.
    Cheers,
    Greg

  • Grab the first rows and put it to column wise

    Below are two dump, i want to grab the first 2 rows in ascending order by from_date and put to column wise, the first row label first_charge and second row as second_charge. AND throw away rows from 3 are not needed.
    1st dump 5 columns are my input,
    2nd dump 3 columnS ARE my desired output.
    I have tried the rank function but can someone please confirm this is correct way to do this for all the accounts in the table
    Script (table and data) for 1st dump is at bottom of post.
    Can anyone help resolve this issue - thanks.
    --FIRST DUMP
    ACCOUNT_ID     CHARGE_AMT     CHARGE_DATE     FROM_DATE     THRU_DATE
    212855740     14.52          5/04/2012     14/03/2012     31/03/2012
    212855740     25          5/04/2012     1/04/2012     30/04/2012
    212855740     25          5/05/2012     1/05/2012     31/05/2012
    212855740     25          5/06/2012     1/06/2012     30/06/2012
    212855740     25          5/07/2012     1/07/2012     31/07/2012
    212855740     25          5/08/2012     1/08/2012     31/08/2012
    212855740     25          5/09/2012     1/09/2012     30/09/2012
    212855740     25          5/10/2012     1/10/2012     31/10/2012
    212855740     25          5/11/2012     1/11/2012     30/11/2012
    --DESIRED DUMP                    
    ACCOUNT_ID     PRO_CHARGE     MONTHLY_CHARGE          
    212855740     14.52          25          
    WITH CHARGE_TABLE_QUERY
         AS (SELECT account_id,
                    charge_amt,
                    charge_date,
                    from_date,
                    thru_date,
                    ROW_NUMBER ()
                       OVER (PARTITION BY account_id ORDER BY from_Date)
                       row_num
               FROM my_tbl)
      SELECT account_id,
             MAX (CASE WHEN ROW_NUM = 1 THEN CHARGE_AMT ELSE 0 END) PRO_CHARGE,
             MAX (CASE WHEN ROW_NUM = 2 THEN CHARGE_AMT ELSE 0 END) MONTHLY_CHARGE
        FROM CHARGE_TABLE_QUERY q
       WHERE row_num IN (1, 2)
    GROUP BY account_id;

    ricard888 wrote:
    what happens if a new account where there is no second charge yet. can i have either null or 0 in the monthly_charge.You could test it easily. Anyhow, it will work without any change in the code
    insert into my_table
    select 1,50,CHARGE_DATE,FROM_DATE,THRU_DATE
    from my_table
    where rownum = 1;
    1 rows inserted.
    with CHARGE_TABLE_QUERY as
      select account_id,charge_amt,
             ROW_NUMBER ()
                OVER (PARTITION BY account_id ORDER BY from_Date)  rn,
             lead(charge_amt)
               OVER (PARTITION BY account_id ORDER BY from_Date) MONTHLY_CHARGE
      from my_table
    select account_id,charge_amt pro_charge,monthly_charge
    from CHARGE_TABLE_QUERY
    where rn = 1;
    ACCOUNT_ID PRO_CHARGE MONTHLY_CHARGE
             1         50               
    212855740      14.52             25

  • Bapi call returns first row?? Please help

    After an "execute()" call is made on the model , the return structure shows only first row.
    The context picks it up and shows the first row.
    Have you faced this issue before.
    Can you give some pointer(s)?
    Thanks a bunch.

    Hi,
    1. Try executing BAPI in R/3 with the same parameters that you provide from your web application and see how many rows it return. Also check the size of the output node in WD to confirm that it returns exactly the same number of rows for same parameters using wdContext.node<outputnode>().size();
    2. Also invalidate the node after executing the BAPI using wdContext.node<outputnode>().invalidate();
    Regards,
    Murtuza

  • Cascading LOV always returns first row in af:query

    HI
    JDEV 11.1.1.3.0
    A strange thing is happening with my cascading LOV which is input text with LOV.
    I have a read only table with a query section. I then also bring up any of the tables rows in a popup with single record view where the row is then in an af:form for inserting and updating.
    Both the af:query and af:form have the cascaing LOV in them.
    When testing the cascading LOV in the BC Browser it works fine. When I use it in the popup in the af:form record it works fine. But in the af:query section, no matter which row I choose in the LOV, it always returns the 1st row of the LOV back to my input text component.
    Has anyone experienced this...any ideas?
    Thanks,
    Mario

    Aha...and the above log message lead me to the solution!! :-)
    The VO is based on an Oracle data dictionary view, DBA_TAB_COLUMNS. When you create the read only VO, by default it does not create any of the attributes as "key" attributes, because the oracle view has no primary key.
    Setting owner, tableName and columnName as key attributes solved this issue, now my cascading LOV works in the BC Tester, af:query component and my af:form component.
    Regards,
    Mario

  • Table partition based multiple date columns

    Hi , I am using Oracle 10G db. One of the source table has 26 million rows. Partition is based on business send date(Quaterly). Now the query that used to load the target table is based on ETL load date. Since the load date is not the partition column,the source query is taking long time to fetch.Can someone please suggest how to include ETL load date in the partition column or if any other way to improve the performance of the source query will be greatly appreciated.Thanks

    Partition is based on business send date(Quaterly).
    Can someone please suggest how to include ETL load date in the partition column
    Technically? Sure - just redefine the table (DBMS_REDEFINITION) and partition it on ETL load data.
    But someone partitioned on 'send date' for a reason didn't they? Don't you think you might want to find out WHY before you even think about changing it?
    The only info you have provided so far is that someone 'thinks' that a single query is 'taking long time to fetch'. That doesn't even mean anything. What is 'long time': 5 seconds, 5 days? How many rows are being fetched out of 26 million: 1, 20 million?
    1. post the table and index DDL
    2. post the query and execution plan
    3. post the command you executed to produce the stats on the table and indexes
    4. post the number of rows for the query predicates
    5. post info about the number of rows in the result set and what you are doing with them

  • PDF Printing, only returns first row/page

    Hi
    I can easy demonstrate my problem:
    Let's say I make a report query called 'select ename from emp'
    This returns something like:
    <DOCUMENT>
    <DATE>13-AUG-07</DATE>
    <USER_NAME>VIDAR</USER_NAME>
    <APP_ID>150</APP_ID>
    <APP_NAME>APEX - Application Builder</APP_NAME>
    <TITLE>emp</TITLE>
    <REGION ID="0">
    <ROWSET>
    <ROW>
    <ENAME>KING</ENAME>
    </ROW>
    <ROW>
    <ENAME>BLAKE</ENAME>
    </ROW>
    <ROW>
    <ENAME>CLARK</ENAME>
    </ROW>
    ... and so on...
    Then - I make an RTF document with a simple text saying "Hello World to you <ENAME>", and upload it to the application while creating the report query.
    My problem is, when I now try to open the report through the link, it just gives me page 1 with: "Hello world to you King" - but not page 2 "hello ... blake" , page 3 "...clark" etc.. How can I make ApEx+BIP loop through the rest of the rows? Is it supposed to be like this?
    What I want is ONE .pdf-file with several pages, not just the first result...
    Regards,
    Vidar

    Hi Vidar,
    Yes you can. Open up your RTF template, click View -> Toolbar -> Forms.
    The first icon on the toolbar is a 'Text Form Field', click on that, then double click into the field that this creates. From there click 'Add Help Text' at the bottom and you can 'Type your own' from there.
    Put a <?for-each:yourrowname?> at the start of your template
    and
    <?end-for-each?> at the end. The BI Publisher User Guide has a section on exactly this.
    Cheers,
    Mike

  • Howto create 'select statement' that returns first row? (simple table)

    quick question that drives me crazy:
    Say I have the following table:
    ID....car_model....point_A....total
    1........333.............NY..........54
    2........333.............NJ..........42
    3........333.............NH...........63
    4........555.............NJ...........34
    5........555.............PA...........55
    I would like to create a select statement that return car_model which the starting point is NJ - in this example it's only 555.
    thanks for any tips

    fair enough.
    the problem is this: given the table below, I need to create a report that reflects car rentals from specific location. you can rent a car from different locations; a car has a starting point (like a flight itinerary) so consider this:
    Mark rent a car with the following itinerary:
    NY--> NJ
    NJ--> PA
    PA-->FL
    FL-->LA
    the end user would like to see all car that were rented between X and Y and start point was NJ, so in the example above, the starting point is NY so it doesn't match the end users' criteria.
    The table is organized in the following manner: ID....car_model....point_A....total
    * I don't know whey the someone choose point_A as a column description as it just suppose to be 'location'
    so, back to my first example:
    ID....car_model....point_A....total
    1........333.............NY..........54
    2........333.............NJ..........42
    3........333.............NH...........63
    4........555.............NJ...........34
    5........555.............PA...........55
    if I do this:
    Select car_model from myTable where point_A='NJ'
    the return result will be 333 and 555 but that is in correct because 333 starting point is NY.
    I hope I provided enough information, thanks

  • How to reset a row count based on a column value?

    OracleBI Discoverer 10g (10.1.2.3)
    Oracle Business Intelligence Discoverer Plus 10g (10.1.2.55.26)
    I've got a Discoverer Plus report that shows item receipts, receipt dates, and if the receipt was inspected. I've got items that should be inspected every 5th receipt. There's got to be a handy-dandy function I can use to do this, right?
    Item        Receipt Date      Inspected         
    Bracket     1/1/2009               Y
    Bracket     2/1/2009               N
    Bracket     3/1/2009               N
    Bracket     4/1/2009               Y <--let's assume someone didn't follow the instructions
    Bracket     5/1/2009               N
    Bracket     6/1/2009               N
    Bracket     7/1/2009               N
    Bracket     8/1/2009               N
    Bracket     9/1/2009     I'm looking to count the receipts and reset the counter when Inspected = Y
    Item        Receipt Date      Inspected     Inspect_Count       
    Bracket     1/1/2009               Y                  0
    Bracket     2/1/2009               N                  1
    Bracket     3/1/2009               N                  2
    Bracket     4/1/2009               Y                  0
    Bracket     5/1/2009               N                  1
    Bracket     6/1/2009               N                  2
    Bracket     7/1/2009               N                  3
    Bracket     8/1/2009               N                  4
    Bracket     9/1/2009                                  5 <-- receiver should inspect on this receipt I'm open to other methods if mine seems like a dud.
    -Tracy

    Hi,
    You can use this query for achieve your requierment in your view or you can include in your etl .
    REgards salim.
    SELECT item, receipt_date, inspected
      FROM table_inspect;
    ITEM    RECEIPT_DA INSPECTED                    
    Bracket 01/01/2009 Y                            
    Bracket 02/01/2009 N                            
    Bracket 03/01/2009 N                            
    Bracket 04/01/2009 Y                            
    Bracket 05/01/2009 N                            
    Bracket 06/01/2009 N                            
    Bracket 07/01/2009 N                            
    Bracket 08/01/2009 N                            
    Bracket 09/01/2009                              
    9 rows selected.Solution
    SELECT item,receipt_date,inspected,inspect_count
    from table_inspect
    model
    partition by (item)
    dimension by( row_number()over(partition by item order by receipt_date) rn)
    measures(receipt_date,inspected,0 Inspect_Count )ignore nav
    (Inspect_Count[rn]= case when inspected[cv()]='Y' then 0 else Inspect_Count[cv()-1]+1 end)
    order by receipt_date;
    ITEM    RECEIPT_DA INSPECTED  INSPECT_COUNT
    Bracket 01/01/2009 Y                      0
    Bracket 02/01/2009 N                      1
    Bracket 03/01/2009 N                      2
    Bracket 04/01/2009 Y                      0
    Bracket 05/01/2009 N                      1
    Bracket 06/01/2009 N                      2
    Bracket 07/01/2009 N                      3
    Bracket 08/01/2009 N                      4
    Bracket 09/01/2009                        5
    9 rows selected.Edited by: Salim Chelabi on 2010-03-03 07:49

  • Issue with ADF:Table, always getRowIndex() is returning first row.

    Hi Friends,
    I am working on adf:table and trying to get the selected row of the table. I always get rowindex as 0.
    I am using the following code in my Bean:
    UIXTable searchTable = getEmpTable();
    FacesCtrlHierNodeBinding rowdata =
    (FacesCtrlHierNodeBinding) searchTable.getRowData(searchTable.getRowIndex());
    jsff code:-
    <af:table value="#{bindings.EmpTRVO.collectionModel}"
    var="row"
    rows="#{bindings.EmpTRVO.rangeSize}"
    emptyText="#{bindings.EmpTRVO.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.EmpTRVO.rangeSize}"
    rowBandingInterval="0" id="t2"
    contentDelivery="immediate"
    autoHeightRows="#{bindings.EmpTRVO.estimatedRowCount}"
    binding="#{pageFlowScope.Bean.EmpTable}"
    styleClass="AFStretchWidth"
    rowSelection="single"
    selectionListener="#{bindings.EmpTRVO.collectionModel.makeCurrent}">
    Please suggest !
    Thanks in advance.

    Which jdev version do you use?
    You can use the current row of the iterator the take use.
    DCIteratorBinding iterBind= (DCIteratorBinding)dcBindings.get("te stIterator"); String attribute = (String)iterBind.getCurrentRow().getAttribute("field1");Timo

  • Query executed within a plug-in script returns 0 rows, although data exists

    I created a plug-in script for algorithm entity: Service Quantity Rule.
    The script calls a business service that I created using query zones. The query returns the values of the bill segment (ci.bseg.bseg_id and ci_bseg.closing_bseg_sw) that is created while running a bill manually. The zone receives the bseg_id as a parameter.
    The problem is that when I execute the business service within the plug-in script the business services returns 0 rows even though the data is actually being stored in the database.
    The script calculates some SQI values and saves it to the bill segment based on a response that is received from MDM (I'm using the usage request object).
    Steps:
    1.- Create Bill. The bill segment is created in error as it is waiting for the bill determinants to be sent from the MDM. If I test the zone with the bseg_id (as a parameter) of the newly created bill segment it works fine.
    2.- We send a message from the MDM to CC&B. The message is received and processed and it gets to a point when the usage updates the bill segment.
    3.- After the bill segment has been updated with the values from the usage request object it starts executing the plug-in script.
    4.- I obtain the bseg_id from the usage request and use the business service (passing the bseg_id as a parameter) and it returns no result.
    5.- The process finishes and if test the zone with the bseg_id (as a paramter) of the billing segment it works fine.
    So apparently during the execution of the script after the billing determinants are received from MDM I can't have access to the Bill segment that was created, even if the physically the record exists in the database (CI_BSEG).
    I also tried instantiating an object related with the bill segment and got the same result.
    Any idea or clue of what is happening?

    Could you be more explicit.
    What CC&B version?
    What MDM version?
    More details are required for:
    2.- We send a message from the MDM to CC&B. The message is received and processed and it gets to a point when the usage updates the bill segment.
    3.- After the bill segment has been updated with the values from the usage request object it starts executing the plug-in script.
    4.- I obtain the bseg_id from the usage request and use the business service (passing the bseg_id as a parameter) and it returns no result.

  • Pie Chart Only Displays the Data of the First Row of the Table

    Hi Experts,
    I have a problem that the pie chart will not change when click on a second row or other rows on the table. It only displays the data of the first row of the table. How can I set up to make it reflect on any rows when I click the table? Please help, and I would very appreciate that.
    Thanks,
    -Don

    Thanks a lot for your response. I have realized that the pie chart behaves that way, so I just use the filter to see the specific data that I want. Also, you can drag the row and drop it right at the first row to see the data in the pie chart.

  • How to make date column sortable which has inline case in report

    Hi all,
    I have date column which has inline case to check for expiration and display text 'expired' along with date. This column is set to be sortable. On sorting, it is doing based on char not on date. How can I retain this inline case along with getting correct sort order on clicking column header ?
    Thanks!

    982185 wrote:
    Hi all,Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your profile with a real handle instead of "982185".
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    I have date column which has inline case to check for expiration and display text 'expired' along with date. This column is set to be sortable. On sorting, it is doing based on char not on date. How can I retain this inline case along with getting correct sort order on clicking column header ?Note comments above regarding the importance of stating whether you are using a standard or interactive report.
    Here's 2 possible techniques, which you can modify to fit how you want "expired" values to be sorted:
    <li>{message:id=10609805}
    <li>{message:id=4175275}
    The second one is the best approach if using a standard report, or an interactive report in APEX 4.2.

Maybe you are looking for

  • Cant install commerce server 3.5 with  wl 6.0sp2

    When I try to install commerce server 3.5 (WLCS_with_sp1UNIX.bin) I get to the point were it asks me for the bea home directory, which I enter as /usr/local/bea. I then get the message "the weblogic 6.0 is required to be installed, but is not present

  • HD video newbie question related to camera shooting mode

    Hi everyone I apologize in advance as this has been covered (sort of) but I cannot definitively answer my question reading other posts so perhaps your answers will clarify this for myself and future interested parties. I am ready to purchase a Canon

  • SAP HR Benifits  - Urgent

    Hi, This is important and urgent. I have created a benifit health plan for IT0167. The entry for this is through T-Code <b>HRBEN0001 </b>. When I go to PA30 and make an entry by selecting the IT0167, it works fine. But this is not appearing in Enroll

  • Fix custom cost in the billing document.

    The client wants to add a fix custom cost for some of their customers in the invoice. Normally in the SAP system one delivery document and one invoice is created per purchase order number of the customer entered in sales order. Purchase order number

  • Ma carte sim est bloquer et demande un code que je nais pas

    ma carte sim est bloquer et je ne peut pu activer mon telephone quoi ffaire