By selecting the field online Max Date

Hi Experts

Say if I have the following data in my business model

Customer SeqNo StatusCode StatusDate StatusTime
15555 1 A1 2010-06-24 07:16:45
15555 1 A2 24/06/2010 07:17:02
15555 1 A3 24/06/2010 09:27:33
16665 3 A4 02-07-2010 07:30:34
16665 3 A5 07/02/2010 09:24:34
16665 3 A3 07/02/2010 07:30:18
16665 2 A4 07/01/2010 10:24:34
16665 2 A3 07/01/2010 08:30:18

And in the responses, I wanted to select the last statuscode by customer and SeqNo example

Seq 1 customer 15555 StatusCode = A3
Seq 3 customer 16665 StatusCode = A5
Seq 2 customer 16665 StatusCode = A4

I was wondering how I could do this?

Published by: mitroberts on 02/08/2010 21:20

Hammett81 wrote:
Hi friend

code: CASE WHEN STATUSCODE = MAX (STATUSCODE by CUSTOMER, SEQNO), THEN END STATUSCODE should go on the formula for the column (in the STATUSCODE column).

Kind regards.

Hello

You can update the code as,
CASE WHEN STATUSCODE = MAX (STATUSCODE by CUSTOMER, SEQNO) THEN STATUSCODE of another "99999" END should go on the formula in the column (in the STATUSCODE column).

then apply the filter on this column. Column! = "99999"

Tags: Business Intelligence

Similar Questions

  • Impossible to select the fields in Acrobat Pro XI tools/editor of formulas to calculate

    First of all, in the form Acrobat Pro XI during an attempted editor calculate fields, I don't and then select the fields (click), to calculate.  I can only just select or deselect all.

    Also, if my simple spreadsheet formula is:

    =IF(Value01> 0,SUM(Value01* (Value02-Value03)),"")

    Is there a simple way to translate this formula in a calculation script in the form Pro Adobe Acrobat XI (or FormsCentral) tools?

    Thanks for any input.

    Relating to the selection of fields: use the space bar or click a little out of the center of

    the checkbox. This is a known problem in Acrobat that has not been resolved yet.

    Unfortunately.

  • Cannot select the fields to be used in a calculation field in Acrobat XI

    I am running Acrobat XI on Windows 10 and set up a form.  I'm having a problem with the implementation of a field to make a total calculated.

    The first field has the user to enter the number of widgets sold. The field is formatted as a decimal number.

    The second field is the user to enter the price per widget.  This field is formatted as a number to 2 decimal places.

    I want the product of fields one and two for appear in zone 3, which also in the form of a number to 2 decimal places.  When I opened the box of 3 field properties and go to the tab calculate and select value is the product of the following fields and click the Select button, I can see fields 1 and 2 in the field list, but by clicking on the buttons to select them does nothing, that is, I can not select the (or any other area besides).  The boxes stays white when I click on them.

    Clay

    It is a frequently asked question.

    Acrobat has not the point of sense and the box always aligned for all systems. Fortunately most computer operating systems use the space as an activator of selector key. If it highlights the domain name pressing the SPACEBAR will select or deselect the field highlighted.

    You may also be able to use the option of simplified field Notation if the names of the fields conform to the naming standard.

  • Select the fields to be calculated using total can not choose

    I can't check boxes in the list I want to calculate a total for a form.

    I formatted all the fields of cost in the form of numbers. I want to CostRow1, 2 and 3 to calculate the amount in CostTOTAL. I tried to click on each field individually as well as select all, and then deselect the fields irrelevant to anything does not. See the screen capture below.

    I use Acrobat Pro XI.

    Image 1.png

    Some people have this problem, and you can either use the keyboard (SPACEBAR to select, tab/arrow keys to navigate the list), or click on close check boxes.

  • Validation - validate if the field has a date format appropriate or a number

    Hello

    I have 2 of my form fields... we're the date type and the other is of type number... may I know how to validate if the field has the correct date/number format...

    Please advice how to write "Validation" of the APEX feature to accomplish the foregoing.

    Thank you

    can I know how to validate if the field has the correct date/number format...

    The most effective way is simply to try to convert to the type required (using format masks there) in a function to return a Boolean validation:

    declare
    
      n number;
    
    begin
    
      n := to_number(:p1_num_item);
    
      return true;
    
    exception
    
      when value_error or invalid_number
      then
        return false;
    
    end;
    

    and

    declare
    
      d date;
    
    begin
    
      d := to_date(:p1_date_item, 'DD-MON-YYYY');
    
      return true;
    
    exception
    
      when others
      then
        if sqlcode between -1899 and -1800
        then
          -- Date format error
          return false;
        else
          -- Unexpected error
          raise;
        end if;
    
    end;
    

    my date is in the following format: DD-MMM-AA

    There is no format 'MMM' model. And do not use 2-digit year formats: which caused bad enough already.

  • Select the fields in the table based on the selection + valueChangeListener

    I have an af:table with selectonebooleanbox and some entry box.

    Once selected through the box of selectoneboolean lines I want to activate the input box that is initially disabled.

    I have a property called isEnabled is related to the inputBox like this

    < af:inputText value = "#{row.quantity}" disabled = "#{row.isEditable}" > "

    ValuechangeListener I can set this property to false so that the field becomes editable, but the table or list of the tobe table should refresh on the selection of each selectOneBoolean.

    Any poniters how to do this?

    JDeveloper 11.1.4 and jsf pure application (adf as display technology)

    JSF code:

    < af:table value = "#{createOpportunity.dataList}" var = 'row' "
    rowBandingInterval = binding = "#{demo.t1 '0'}" id = "t21" > "
    < af:column headerText = "Model" >
    < af:selectBooleanCheckbox text = "#{row.modelRange} '"
    Label = "Label 1"id = "sbc1" value ="#{row.selected}".
    valueChangeListener = "#{createOpportunity.enableEditing}" / >
    < / af:column >
    < af:column headerText = "Description" >
    < af:outputText value = "#{row.description}" / >
    < / af:column >


    < af:column >
    < af:inputText value = "#{row.quantity}" disabled = "#{row.isEditable}" > "
    < af:convertNumber type = "number" integerOnly = "true" / >
    < / af:inputText >
    < / af:column >
    < / af:table >

    Screw the bean code

    {} public void enableEditing (ValueChangeEvent valueChangeEvent)

    for (dataItem ModelDescription: dataList) {}
    If (dataItem.isSelected ()) {}
    dataItem.setIsEditable (true);
    }
    }
    }


    Thnks.

    Published by: Wannabe Java Guru on March 9, 2011 03:04

    Published by: Wannabe Java Guru on March 9, 2011 05:12

    Add the code snippet in the value change listener and see if help to:

    valueChangeEvent.getComponent () .processUpdates (FacesContext.getCurrentInstance ());

    That is to say

    {} public void enableEditing (ValueChangeEvent valueChangeEvent)
    valueChangeEvent.getComponent () .processUpdates (FacesContext.getCurrentInstance ());
    System.out.println ("in enableEditing");
    selectedDataList = new ArrayList ();
    for (dataItem ModelDescription: dataList) {}
    If (dataItem.isSelected ()) {}
    dataItem.setIsEditable (true);
    }
    }
    }

    Thank you
    Nini

  • Enumeration of the fields of form data in a PDF file

    Hey there,

    I have an existing VS C++ application and I would like to add the ability to enumerate all fields of form data in an existing PDF file. Before saying anything more, I must admit that I am a total newbie to Adobe technology. This fact will probably be quite obvious in a few sentences: - D.

    In any case, I think I should use the portion of the IAC to the API of Acrobat. I had downloaded the SDK of X, and I found the files acrobat.h and acrobat.cpp that provide the CAcroApp wrapper. I am able to create this object as follows...

    Try

    {

    IUnknown * punkAcrobat;

    IDispatch * pdispAcrobat;

    CLSID clsidAcrobat;

    CLSIDFromProgID (L "AcroExch.App", & clsidAcrobat);

    Create an instance of Acrobat and

    get a ptr to its IUnknown interface

    HR =: CoCreateInstance (clsidAcrobat, NULL, CLSCTX_SERVER,

    IID_IUnknown, (void *) & punkAcrobat);

    If (FAILED (hr)) up at the time.

    Get the IDispatch interface for automation...

    HR = m_punkAcrobat-> QueryInterface (IID_IDispatch, (void *) & pdispAcrobat);

    If (FAILED (hr)) up at the time.

    CAcroApp aa (ab.m_pDispAcrobat); comes from acrobat.h

    AA. Show();

    AA. Masquer();

    AA. Exit();

    }

    catch (HRESULT hrException)

    {

    HR = hrException;

    }

    Life is good. Now, to enumerate the data fields of form (appropriate terminology?) in a PDF file, I * think * I need to get a pointer to the AFormAut.App COM interface. Of course, I can do this, as I've done above and, in fact, I have and it works. But then I would have some sort of sweet wrapper handy for this interface - just like the wrappers in acrobat.h. I also want a pony for Christmas! - D... anywayyyyy, such a wrapper is there? Can you give me some tips on how to get from there where I am above that it is able to call the method ExportAsFDF (I think that's what I need)?

    As I said, I'm a newbie; so be nice .

    Regards and thanks in advance!

    Using AcroAVDoc instead of AcroPDDoc, the get_fields method seems to work. Perhaps one can post an example of MFC project as soon as I get this job.

    Kind regards

    Duke

  • Select the mountains between two dates

    Hi all
    How can I select all months between two dates. For example, if two dates are say 2008-05-25 and 2009-07-15, then I need following output

    May-2008
    June-2008
    July-2008
    August-2008
    September-2008
    October-2008
    November-2008
    December-2008
    January-2009
    February-2009
    March-2009
    April-2008
    May-2009
    -June 2009
    July-2009

    Thank you
    Sujnan

    Try this one

    SQL>  SELECT TO_CHAR(add_months(TRUNC(to_date('25/05/2008','DD/MM/YYYY'),'MM') ,(level-1)),'fmMonth-YYYY')
      2     FROM dual
      3    CONNECT BY level <= months_between(to_date('15/07/2009','DD/MM/YYYY'),to_date('25/05/2008','DD/MM/YYYY')) + 2;
    
    TO_CHAR(ADD_MO
    --------------
    May-2008
    June-2008
    July-2008
    August-2008
    September-2008
    October-2008
    November-2008
    December-2008
    January-2009
    February-2009
    March-2009
    
    TO_CHAR(ADD_MO
    --------------
    April-2009
    May-2009
    June-2009
    July-2009
    
    15 rows selected.
    
    SQL> 
    
  • Game for the field's default date

    When we click the date field, we see today. I like when the user clicks on the date field, they see only the first year.

    How can I set one as default to pop up date and after clicking I get desired date?

    Help, please...

    Hello

    Cannot change the behavior of the default date selector.

    The only way to make it work as you like to create a custom date picker.

    An example can be found here: http://cookbooks.adobe.com/post_An_alternative_Date_Picker_for_LiveCycle_Designer-18455.ht ml

  • Select the field to update the text box

    now, I'm doing a text box to fill from a table when a value has been chosen on the selection list.
    basically a user will select a number of project of a selection list. Once that a text box will automatically fill with text from a table. Using something similar to the code below.
    SELECT PROJ_COMM FROM PROJECTS
    WHERE PROJ_NUM =:P17_PROJ_NUM
    I'm just at a point where I don't really know where to put this code it will work.

    any ideas?

    Published by: KySarge1981 on August 23, 2010 13:39

    Hi Mike,.

    I think you might find Anthony Action dynamic Sample Application very useful: http://apex.oracle.com/pls/otn/f?p=39830:32. If you connect to the application, you will find a link to download it, then you can take a look at how each of the samples have been implemented. The example of ' Set Value (SQL) "would be of particular interest in this case. Blog of Anthony on the sample application here: http://anthonyrayner.blogspot.com/2010/07/apex-40-new-dynamic-action-sample.html.

    I hope this helps.
    Kind regards
    Hilary

  • I am unable to get the compute function to allow me to select the fields that I want to add.  I followed all the instructions I could find but nothing works.  If I click select all or deselect all the options it will do

    Does anyone have a suggestion as to what is the work around?

    Use the space bar.

  • Select Max (date) between multiple tables

    I need to retrieve a record from a Table in a set of similar tables with a common "date field". You can select the record where this "date field" value is greater between multiple tables.

    Here, any help is appreciated.  Thank you in advance.

    FOR EXAMPLE

    No. EMP is the primary key.

    Again, each table can have multiple records for EMP n ° 1

    TABLE1:

    FIRST NAME

    FAMILY NAME
    THE EMP NO.

    BASE SALARY

    DATE_FROM

    TABLE 2

    FIRST NAME

    FAMILY NAME
    THE EMP NO.

    SALARY GRADE

    DATE_FROM

    TABLE 3

    FIRST NAME

    FAMILY NAME
    THE EMP NO.

    COMPENSATION

    DATE_FROM

    Hello

    Said Knani, if you use the current design of the table, then here is a way to do what you want:

    WITH union_data AS

    (

    SELECT MAX (base_salary) AS sal FROM table1 UNION ALL

    SELECT MAX (grade_salary) table2 UNION ALL

    SELECT MAX (compensation) FROM table3

    )

    SELECT MAX (sal) AS max_sal

    Of union_data

    ;

  • How to calculate the load time, max - min date query

      CREATE TABLE TEST ( GID VARCHAR2(100 BYTE), SGID VARCHAR2(100 BYTE), PID VARCHAR2(100 BYTE), DATES TIMESTAMP (6) );
    
    REM INSERTING into TEST
    SET DEFINE OFF;
    Insert into TEST (GID,SGID,PID,DATES) values ('1','1000','ABC',to_timestamp('24-AUG-13 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('1','1001','BCD',to_timestamp('24-AUG-13 05.21.46.491000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('1','1002','CDE',to_timestamp('24-AUG-13 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('2','1004','EDF',to_timestamp('23-AUG-13 05.22.20.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('2','1003','FEG',to_timestamp('24-AUG-13 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('2','1001','GHI',to_timestamp('24-AUG-13 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('2','1006','JKL',to_timestamp('24-AUG-13 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('3','1007','LMN',to_timestamp('24-AUG-13 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('3','1001','OPQ',to_timestamp('24-AUG-13 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));
    

    Hello

    I need a sql query which gives me the time taken to load the records ie., Max date less date min. I ran a query that gives me the result "0 23:59:26.491" below.

    select (max(DATES) - min(DATES)) from test;
    

    When I apply the same logic in Peoplesoft enterprise manager, it generates the sub query and throw me the "ORA-01722: invalid number" error.

    select max(TO_CHAR(cast((DATES) as timestamp),'YYYY-MM-DD-HH24.MI.SS.FF'))
    -min(TO_CHAR(cast((DATES) as timestamp),'YYYY-MM-DD-HH24.MI.SS.FF'))
    from test; 
    

    Can you please modify the above query?

    user11872870 wrote:

    1. CREATE TABLE TEST (VARCHAR2(100 BYTE), VARCHAR2(100 BYTE), PID VARCHAR2 (100 BYTE) SGID GID, DATES TIMESTAMP (6));
    2. INSERTION of REM in TEST
    3. TOGETHER TO DEFINE
    4. Insert into TEST (GID, SGID, PID, DATES) values ('1 ', ' 1000', 'ABC', to_timestamp (12.00.00.000000000 AM Aug 24, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    5. Insert into TEST (GID, SGID, PID, DATES) values ('1 ', ' 1001', "BCD", to_timestamp (24 August 13 05.21.46.491000000 PM ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    6. Insert into TEST (GID, SGID, PID, DATES) values ('1 ', ' 1002', "COE", to_timestamp (12.00.00.000000000 AM Aug 24, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    7. Insert into TEST (GID, SGID, PID, DATES) values ('2 ', ' 1004', "EDF", to_timestamp (05.22.20.000000000 PM Aug 23, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    8. Insert into TEST (GID, SGID, PID, DATES) values ('2 ', ' 1003', "FEG", to_timestamp (12.00.00.000000000 AM Aug 24, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    9. Insert into TEST (GID, SGID, PID, DATES) values ('2 ', ' 1001', 'GHI', to_timestamp (12.00.00.000000000 AM Aug 24, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    10. Insert into TEST (GID, SGID, PID, DATES) values ('2 ', ' 1006', 'JKL', to_timestamp (12.00.00.000000000 AM Aug 24, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    11. Insert into TEST (GID, SGID, PID, DATES) values ('3 ', ' 1007', "LMN", to_timestamp (12.00.00.000000000 AM Aug 24, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    12. Insert into TEST (GID, SGID, PID, DATES) values ('3 ', ' 1001', "Professions", to_timestamp (12.00.00.000000000 AM Aug 24, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));

    Hello

    I need a sql query which gives me the time taken to load the records ie., Max date less date min. I ran a query that gives me the result "0 23:59:26.491" below.

    1. Select (max (DATES) - min (DATES)) of the test;

    When I apply the same logic in Peoplesoft enterprise manager, it generates the sub query and throw me the "ORA-01722: invalid number" error.

    1. Select max (TO_CHAR (cast ((DATES) as timestamp),'YYYY-MM-DD - HH24.MI.)) SS. FF'))
    2. -min (to_char (Cast ((dates) as timestamp),'YYYY-MM-DD - HH24.MI.)) SS. FF'))
    3. of the test;

    Can you please modify the above query?

    1. SELECT max (cast (DATE) as date)-mIN (cast (DATE) as date) test;
  • by selecting the max value of the rank function.

    Hi I have the following querry on the table use:

    Select user_id, e-mail,
    Rank() (PARTITION BY Email order by user_id) AS rank_l
    of users_tab;

    It gives me the result as follows:
    user_id E-mail rank_l
    1 1 [email protected]
    2 2 [email protected]
    3 [email protected] 1
    4 [email protected] 2
    5 [email protected] 1
    6 [email protected] 2
    7 [email protected] 3

    I need to select the user rank max id from the result set.
    in this case, the result should I get is:
    user_id E-mail rank_l
    2 2 [email protected]
    4 [email protected] 2
    7 [email protected] 3


    Help, please?

    Hello

    The "with" clause is only for the purppose test, use your own data. The solution is in the OLAP NTH_value function.

    select
    distinct
    nth_value(user_id,1) over (partition by email order by user_id desc) as id,
    nth_value(email,1) over (partition by email order by user_id  desc) as email
    from users_tab
    order by 1
    

    It works with your own data?

    Kind regards.

  • I cannot select the names of the fields calculated field options. When I try to use the simplified field Notation: change, there is no "OK" button after typing my calculation. Why I don't see these features. I have Adobe Acrobat XI - v11.0.13

    I have Acrobat XI and I'm not able to create calculated fields. When I use the value matches the section, then click on choose to select the fields, it does not select unique fields. I can click Select all or deselect all the... but that's all. So I tried using the simplified field notation and click on modify... the Java script box opens. I can type the script... but there is no options down to say OK or cancel. I don't see any of these options. Why I use this feature?

    Kimberly

    To select a single item from list click on it and then press the SPACEBAR.

    The other question is very strange... Try to run a repair installation.

    On 27 October 2015 14:06, "kimberlyf63795453" [email protected]>

Maybe you are looking for