Help needed in finding max of a given dates

I have stored a list of dates in an arraylist.
I need to find the maximum or the latest date from the list.

This "feature" was not documented (at least I haven't seen one for the last few months) and has been abused by some retard(s?) for CSS injection, so Sun chose to fix it by removing it ...

Similar Messages

  • Query help needed in finding max value between two columns

    I have a table as follows:
    -- INSERTING into TESTTABLE
    Insert into TESTTABLE (COLA,COL2,COLC,COLD,COLE,COLF) values ('A','4.5','AA',0.3,'AB',5.5);
    Insert into TESTTABLE (COLA,COL2,COLC,COLD,COLE,COLF) values ('B','1','BB',2.5,'BC',6.9);
    Insert into TESTTABLE (COLA,COL2,COLC,COLD,COLE,COLF) values ('C','2.6','CC',3.3,'CD',1.4);
    Insert into TESTTABLE (COLA,COL2,COLC,COLD,COLE,COLF) values ('D','1.8','DD',2.9,'DE',1.2);
    Insert into TESTTABLE (COLA,COL2,COLC,COLD,COLE,COLF) values ('E','6.8','EE',4.8,'EF',9.6);
    Insert into TESTTABLE (COLA,COL2,COLC,COLD,COLE,COLF) values ('F','2.0','FF',6.34,'FG',3.9);
    Insert into TESTTABLE (COLA,COL2,COLC,COLD,COLE,COLF) values ('G','1.7','GG',3.6,'GH',5.8);
    I want to get results as follows:
    COLA COL2 MaxCol MaxColVal
    A 4.5 AB 5.5
    B 1 BC 6.9
    C 2.6 CC 3.3
    D 1.8 DD 2.9
    E 6.8 EF 9.6
    F 2.0 FF 6.34
    G 1.7 GH  5.8I want to get the max value of either of the columns COLD or COLF.. Whichever column has got max value, then the corresponding value of COLC and COLE should be returned..
    For eg., in first row, COLF has higher value than COLD.. ie., COLF = 5.5 > COLD = 0.3, so for row1, i want the result as MaxCol is AB and MaxColvalue is 5.5..
    Similarly for third row, COLD =3.3 > COLF=1.4, so for 3rd row, i want the result as MaxCol is CC and MaxColvalue is 3.3
    How is it possible to do this in a qery? Any help.. please..

    SQL> select cola
      2       , col2
      3       , case greatest(cold,colf)
      4         when cold then colc
      5         else cole
      6         end maxcol
      7       , greatest(cold,colf) maxcolval
      8    from testtable
      9  /
    C COL MA  MAXCOLVAL
    A 4.5 AB        5,5
    B 1   BC        6,9
    C 2.6 CC        3,3
    D 1.8 DD        2,9
    E 6.8 EF        9,6
    F 2.0 FF       6,34
    G 1.7 GH        5,8
    7 rijen zijn geselecteerd.Regards,
    Rob.

  • Help needed in Finding Download location for Sun One Portal 7

    Hi,
    help needed for finding download location for Sun ONE Portal 7. I tried to find in Oracle Download page ,
    http://www.oracle.com/us/sun/sun-products-map-075562.html, But unable to find.
    Please share the link for download location.
    I am totally new in Sun ONE Portal.
    Thanks,
    Edited by: 945439 on Oct 5, 2012 3:41 AM

    try edelivery.oracle.com under sun products.

  • I need to find out how much wifi data my apps are using. I have a very limited amount of wifi data, and I am exceeding my monthly allowance. Apparently, even apps I think are not open are sending/receiving data through the wifi and using up my allowance.

    I need to find out how much wifi data my apps are using. I am on a very limited amount of WiFi data each month, which I am regularly exceeding. I have been told to work out which of my apps is using the data. Also, I think I have closed an app by double clicking the home button, then swiping the app up - is this the way to close it, or will it still be sending/receiving data?

    Go into your Settings : General : and turn off background refresh for your apps.  In Settings : Mail  turn Fetch new data to OFF and Load Remote Images to OFF.  This will mean that Mail will only check for messages when you actually use it, and all your advertising junk mail won't have all the images in it.
    Turn off push notifications every chance you get.
    Make sure you are actually quitting apps:  to quit apps press the Home button twice and you should see a bunch of smaller screen images for every open app.  To quit the app swipe from the screen image (not the icon) upward off the top of the iPad.  You can swipe left and right to see more open apps, but there must be no left-right movement on the screen when you swipe upward to close the app.
    Turn off your internet connection when you do not need it.  The easiest way to do this is to swipe up from the bottom of you screen to get the control centre, and then touch the airplane to turn on airplane mode.  You can repeat this sequence to turn it back on again when you need it.  Most especially turn airplane mode on whenever you are sleeping your iPad for long periods.  This will save battery life too.  OR actually turn your iPad off - which means holding the power key down for several seconds until the red swipe bar appears, and then swipe to turn it off.  If you go this route, note that it will take longer to turn on then it takes to wake from sleep.

  • Help needed to find the schema/application data size

    Hi,
    Would i request you to help me to measure schema size/(APEX)application data size.
    I've 3 applications running on same schema and now i want to move one application to new server, new schema,
    Now i need to know how much space is required for this application to host on the new server, so i should find the application size and application data size in the current server, your hep is appreciated. thanks in advance.
    Regards

    Hi,
    Would i request you to help me to measure schema size/(APEX)application data size.
    I've 3 applications running on same schema and now i want to move one application to new server, new schema,
    Now i need to know how much space is required for this application to host on the new server, so i should find the application size and application data size in the current server, your hep is appreciated. thanks in advance.
    Regards

  • [SOLVED] Help Needed to find the name of the openbox theme

    Can anyone help me to find the name of the openbox theme ?.
    Thank you.
    It's Numix
    Last edited by bhante (2015-01-07 11:13:12)

    That looks a lot like the Numix GTK theme...

  • Find material Stock to given date

    I have been asked to customize the standard report transaction MB5L. I have created ZPROGRAM for the report. I have an input field for date to get material stock till that date.How can i calculate material stock till the given date ?

    Basically you will have to use
    An "historical" table with stock at end of periods
    - MBEWH     Material Valuation: History
    - MARDH     Material Master Storage Location Segment: History
    etc.
    A "flow" table for movement before last period recorded and date asked for
    - MSEG/MKPF Document Segment: Material
    - BSIM Secondary Index, Documents for Material
    <i>(Use MSEG/MKPF for quantities and BSIM for valuations its easier than matching the two files, valuation can vary without movement in MSEG and some movement in MSEG don't reflect in accounting)</i>
    Regards

  • Help need to find $7.99 a month create pdf

    I need to buy an adobe program to create pdf file from word doc and quickbooks invoice.
    Your advisor told me to look up create pdf for $7.99 a month. cant find it.

    Hi,
    Create Pdf is now known as Pdf Pack . You can visit the below mentioned link for help:-
    https://www.acrobat.com/createpdf/en/home.html?promoid=KIIBF
    Thanks

  • Help needed to find a good mapmytracks apps to N8...

    I had an older Nokia and used the apps mapmytracks, which is wonderful (you use your mobil as a gps, it has very good maps including topo, works also in the forrests, it counts the meter you walk and you can save the rutes afterwards. BUT it does not work with N8 and the developers will not fix it,  because the symphian3 has no future. Could anyone here  give my the name of an other apps that can do the same things. I would not find  such an apps for N8, I need it  and if I (and people who need precise tracking in a forrest) do not find such an  apps for N8 we need to stop using Nokia. Hope someone can help me.
    Mugge Pinner

    http://store.ovi.com/content/26345?clickSource=search
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

  • Help needed in finding duplicate entries in invoices

    Hi,
    let me explian u the senario.
    when we enter the invoice no. in vf03 and select any item and click on pricing button.
    there i find the Cnty fild having duplicate entries like xr1 2 times and xr2,xr3,xr4,xr5 and xr6 all 2 times
    so i need to write a query to find out which of all the invoices have these types of duplicate entries.
    regards,
    maqsood

    Hi!
    CnTy is header line of condition type column.
    There can be several reasons, why conditions types are twice in a document. E.g. conditions can be given on header and line level, so they are two times in a document.
    These tax conditions are just line level. But please check, if they have different colors. I currently don't remember if only the blue or only the black lines (with or without highlight) are relevant for the document.
    The inactive conditions are still shown, but not 'counted'. You can set conditions inactive by requirements, by formula, by exclusion groups... so there are many ways to set the system up.
    Only if your total is wrong you have to do something (e.g. give users a training how to create a sales order / invoice).
    Conditions for invoice can be found in KONV with KONV-KNUMV = VBRK-KNUMV.
    Regards,
    Christian

  • HELP- need to find files

    I hope someone can help me out there! Recently I experienced a problem that Lightroom was condensing my pictures (500x500 jpeg), when I went to go in to resize to a larger size it lost the image and became blurry and noisy.... I did not save the RAW images, I thought though that Lightroom automatically saves the images. Is there anyway to get back the files with the correct dimension even if it is JPEG or to re-edit them as RAW.. I don't have them on the memory card either and it has been about a month or so and I am just noticing this problem now, geese!
    Any help or feedback is appreciated!
    Thanks.

    If you imported the RAWs using Lightroom, then the RAWs are on one of your hard disks somewhere, unless you deleted them. I suggest you look for them. The easiest way to find them is to go into Lightroom and right-click on the photo and select "Show in Explorer". This won't work if you deleted or moved or renamed the photos. You could also search for them using your operating system tools. Please try both of these suggestions and report back.
    I think you also need to look at introductory videos/tutorials/FAQs on the proper usage of Lightroom, as it sounds like a lot of these problems are preventable.

  • Help - Need to Get Max(Date) from An Unrelated Table in PowerPivot

    I have two tables in my Power Pivot model:
    Table A (a many table)
    Asset    
    SerialNumber                   
    User
    CTUT111                             
    YC112233                                            
    Bob
    CTUT222                             
    ZZ221144                                            
    Susy
    CTUT222                             
    ZZ221144                                            
    Larry
    CTUT333                             
    AB332244                                           
    Bob
    Table B (a many table, a CSV import from another system)
    Asset                    
    SerialNumber                                   
    CheckIn_Date
    CTUT111                             
    YC112233                                            
    6/15/2014
    CTUT111                             
    YC112233                                            
    6/20/2014
    CTUT222                             
    ZZ221144                                            
    6/18/2014
    CTUT333                             
    AB332244                                           
    6/20/2014
    I know it appears odd that Table B would have two entries for the same Asset (CTUT111), but it does.
    I know I could write a SQL query that gave me the MAX(CheckIn_Date), but I’m not staging these datasets in a SQL server first. 
    I’m pulling directly from CSV tables.
    I don’t want to have bridge tables either, if possible. 
    So, I’m left with a many-to-many situation in Power Pivot.
    I want to add a Calculated Column to Table A, called ‘Latest CheckIn Date’ – which I get from Table B, matching on Serial Number.
    So, when I’m done, I would expect the value for Asset=CTUT111 to be 6/20/2014 (since it’s the MAX of a value of dates)
    I’m trying this pattern from Marco Russo in which you don’t need to relate two tables to exchange information, but it doesn’t appear to be working.
    =CALCULATE (
    MAX ( VALUES ( TableB[CheckIn_Date] ) ),
    FILTER (
    TableB,
    'TableA'[SerialNumber]
    = TableB[SerialNumber]
    I’ve also tried to use LOOKUPVALUE, but I can’t seem to figure it out.
    Would appreciate the help.
    Thanks in advance.
    -Eric

    Hi Eric,
    Please, try this one formula:
    =CALCULATE (
                MAXX ( VALUES( TableB[CheckIn_Date] ); TableB[CheckIn_Date] );
                FILTER (
                    TableB;
                    'TableA'[SerialNumber] = TableB[SerialNumber]
    P.S. In my locale I use ";". According to your locale you should use ",".
    Truly yours,
    Paul

  • Help needed to find CPU Usages

    Hi Folks,
    I am trying to find the CPU usages of a machine and need help regarding it.I have a JNI Code , which I am unable to compile/create a .dll file using Microsoft VC++. However . I am not sure about the JNI Code that I have( got it in the net).. If anybody can help please, I am in a tight situation.
    My question is how to find the CPU Usages (I know all the procedure) , all I need is an example ...
    Thanks in advance..

    If you need CPU usage of single process then it's easy to use GetProcessTimes().
    If you need to know overall loading then read about registry like interface for performance data. This code little bit complex to post it here especially without comments so it's better to read original paper on say MSDN.
    http://msdn2.microsoft.com/en-us/library/aa373219.aspx
    http://msdn2.microsoft.com/en-us/library/aa373105.aspx
    find more by youself...

  • Help needed with finding node in JTree

    Hi,
    In my application i will be entering some string data in a text box for search criteria.
    When I click on search, I will get data from database which will be shown as a JTree.
    This Jtree will have some nodes in which, node with string entered in the search text box exists.
    I need to focus on this node and I have only a string to find this node.
    How can I do this?How can I find a node in JTree using string value?
    Is there any alternate option by which I can achive my need?
    Please suggest.
    Thanks.

    @OP: please assign your dukes.
    @Andre_Uhres: if you don't get rewarded in the next couple of days, please let me know here to get at least one duke for your effort.
    Bye.

  • Grus help needed in finding the queries with Cartesian  joins

    Hi
    I have a reporting tool in which users are allowed to put the joins on the views and add some sub queries that produces a Cartesian product. Is there any tool or way that I can stop the execution of those query before it is being executed for example
    Step 1 ) user creates a query
    step2 ) user submits it
    step 3) by any tool or any check if Cartesian join is found the query execution is stopped and notify the user that the query is not good if no problem executes the query.
    I really need help in step 3. I am on 9i release2.
    Any help or suggestions will be highly appreciated.

    I Agree with Gasparotto, you should limit the resource consume.
    You must understand that cartesian join, isn´t always a BAD guy, sometimes you need it.
    If your developers are in trouble with handle the join , think about NATURAL JOIN, may be it helps you
    Regards
    Helio Dias

Maybe you are looking for