I NEED A FIRST DATA 5 RANKS

HI EXPORTS.


MY QURY IS

SELECT TOT. HTNO, TOT. RESULT_NAME, TOT. TOTALMARKS, TOT. TOTALRANK,
TOT. RESEXAMSLNO, TOT. RESACADEMICSLNO, TOT. RESGROUPSLNO,
TOT. RESCORPCOLLSLNO, TOT. DISTRICTSLNO
OF RESULT_STUDENTMARKS_TOTALS TOT
WHERE TOT. RESEXAMSLNO = 1
AND TOT. RESGROUPSLNO = 1
AND TOT. RESACADEMICSLNO = 9
AND TOT. RESCORPCOLLSLNO (99)
AND TOT. DISTRICTSLNO (4)
AND ROWNUM < 5
ORDER BY TOT. HTNO


I WANT THE FIRST 4 LINES OF DATA BASED ON ORDER CRESCENT CAN U DISPLAY IS QURY OR

IN VIEW OF ALL EXAMPLE OF FIRST 4 LINES OF DATA ORDER BY ONLY A FIELD IN THE TABLE


THANKS and GREETINGS
ASHOK

Published by: Ashok April 28, 2011 23:01

See

http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:62364503028143

and

http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:2853107469873

You must filter the ROWNUM after ORDER BY.

so:

select * from
(
SELECT TOT.HTNO, TOT.RESULT_NAME, TOT.TOTALMARKS, TOT.TOTALRANK,
TOT.RESEXAMSLNO, TOT.RESACADEMICSLNO, TOT.RESGROUPSLNO,
TOT.RESCORPCOLLSLNO, TOT.DISTRICTSLNO
FROM RESULT_STUDENTMARKS_TOTALS TOT
WHERE TOT.RESEXAMSLNO = 1
AND TOT.RESGROUPSLNO = 1
AND TOT.RESACADEMICSLNO = 9
AND TOT.RESCORPCOLLSLNO IN (99)
AND TOT.DISTRICTSLNO IN (4)
ORDER BY TOT.HTNO
)
where rownum < 6
order by 1

Hemant K Collette

Published by: Hemant K grapple on April 29, 2011 14:28
Change 'rownum '.< 5"="" to="" "rownum="">< 6"="" to="" get="" 5="">

Tags: Database

Similar Questions

  • Need help with select this range of months with flexible first date

    Hi all

    I am creating a selection range months (will be in a WITH clause), for a report view monthly data. But the first months start date may be any date. (Not necessarily the first date of the month)
    Examples:

    Report of input parameters:

    Start date: 10/08/12
    End of month: December 2012

    I tried to build a SELECT that will list
    Month_Start, Month_End
    10/08/12, 10/31/12
    11/01/12, 11/30/12
    12/01/12, 31/12/12

    OR
    Month_Start, Next_Month
    10/08/12, 11/01/12
    11/01/12, 12/01/12
    12/01/12, 01/01/13


    End of the month being optional, if no select value lists only
    10/08/12, 11/01/12


    Details of database is Oracle
    Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
    PL/SQL Release 11.1.0.7.0 - Production

    My code is far
    VARIABLE  P50_START_DATE  VARCHAR2 (10)
    VARIABLE  P50_END_MONTH    VARCHAR2 (10)
     
    EXEC  :P50_START_DATE  := '10/10/2012';
    EXEC  :P50_END_MONTH   := '31/12/2012';
      
     
      SELECT  to_char(:P50_START_DATE) AS start_date
            ,  ADD_MONTHS( TRUNC(to_date(:P50_START_DATE,'DD/MM/YYYY'),'MONTH'), 1) AS next_month
      FROM dual
      union
    
       SELECT to_char(ADD_MONTHS( TRUNC(to_date(:P50_START_DATE,'DD/MM/YYYY'),'MONTH'), ROWNUM-1)) AS start_date
       ,      ADD_MONTHS( TRUNC(to_date(:P50_START_DATE,'DD/MM/YYYY'),'MONTH'), ROWNUM) AS next_month
       --, rownum
       from all_objects
       where
       rownum <= months_between(to_date(NVL(:P50_END_MONTH, :P50_START_DATE),'DD/MM/YYYY'), add_months(to_date(:P50_START_DATE,'DD/MM/YYYY'), -1))
       and rownum > 1
    If I put the comment - on the line and rownum > 1, as
    -- and rownum > 1
    The result I get is
    START_DATE                     NEXT_MONTH                
    
    01/10/12                       01/10/12                  
    01/11/12                       01/11/12                  
    01/12/12                       01/01/13                  
    10/10/2012                     01/11/12    
    But when I try to remove the double off period (the first month) by restricting rownum, it do not return all the lines for the second selection at all. The result I get is:
    START_DATE                     NEXT_MONTH                
    
    10/10/2012                     01/11/12    
    Can anyone tell what is wrong with the statement select?

    Thank you very much in advance,
    Ann

    Queries line use:

    SQL> VARIABLE  P50_START_DATE  VARCHAR2 (10)
    SQL> VARIABLE  P50_END_MONTH    VARCHAR2 (10)
    SQL>
    SQL> EXEC  :P50_START_DATE  := '10/10/2012';
    
    PL/SQL procedure successfully completed.
    
    SQL> EXEC  :P50_END_MONTH   := '31/12/2012';
    
    PL/SQL procedure successfully completed.
    
    SQL> SELECT  CASE LEVEL
      2            WHEN 1 THEN TO_DATE(:P50_START_DATE,'DD/MM/YYYY')
      3            ELSE TRUNC(ADD_MONTHS(TO_DATE(:P50_START_DATE,'DD/MM/YYYY'),LEVEL - 1),'MM')
      4          END MONTH_START,
      5          LAST_DAY(ADD_MONTHS(TO_DATE(:P50_START_DATE,'DD/MM/YYYY'),LEVEL - 1)) MONTH_END
      6    FROM  DUAL
      7    CONNECT BY ADD_MONTHS(TO_DATE(:P50_START_DATE,'DD/MM/YYYY'),LEVEL - 1) <= TO_DATE(:P50_END_MONTH,'DD/MM/YYYY')
      8  /
    
    MONTH_STA MONTH_END
    --------- ---------
    10-OCT-12 31-OCT-12
    01-NOV-12 30-NOV-12
    01-DEC-12 31-DEC-12
    
    SQL> 
    

    SY.

  • Remote control stop scrolling left and right while he needed video first put in pause and scroll any help?

    Remote control stop scrolling left and right while he needed video first put in pause and scroll any help?

    It was an update designed by tvOS 9.2 to the user of the address which have been accidentally scouring...

    http://www.CultofMac.com/420160/scrub-through-video-on-Apple-TV-in-TVos-9-2/

  • Blue Screen on Satellite P100 - need to recover data

    Putting on my laptop yesterday, I was faced with a blue screen error message that even after running chkdisk keeps appearing, even on reboot in safe mode.

    The problem is I only have the Toshiba recovery disks (not a disc XP - XP was preinstalled on your laptop) and they say on them using the wipe recovery disk computer and I need to recover data on the hard drive before reformatting.

    I took the laptop to the local repair center and they say they have to reformat and do not make data recovery.

    Any suggestions gratefully received.

    Hello

    In my opinion, there are two solutions. Is, try to get the facilities WXP CD and see if you can fix it using the option to repair Windows XP Home edition or use supplied recovery media and do a clean install of the operating system. After doing this you will put factory once again and everything will be OK again.

  • Can I Exchange an old HD XP to my new HD running Win 7? I need to recover data

    Hello

    I have an old m10560y of HP Media Center PC with a PJ751AV 160 G hard drive SATA 7200 RPM, which I removed because the motherboard is damaged. I was running Win XP on this machine. I only need to retrieve data on this drive... not going to use it with the new HD (below)

    I currently have an HP Pavilion Elite e9150t by the following:

    Windows 7

    10G RAM

    AVO47AV 750 G 7200 RPM SATA 3G 8 / S HD

    Model #: e9150t
    Product #: NY810AV-ABA
    Software Build #: 93NAv6PcA5
    Service ID #: 110-811
    PCBRAND: Pavilion

    I want to disconnect the existing 750 G HD (Win 7), plug the HD 160 G (Win XP), retreve data on an external hard drive and then plug the HD 750 G and be on my merry way.

    Can I do this?

    Will there be a problem running the old HD 160 G because it works under XP or it will be plug and play?

    THX

    g

    If connected to a USB port, so no, the computer should detect Windows on the internal disk and boot off that. Not all models have motherboards that can even allow the boot off the USB connections. You should be fine. Even if it does not, simply unplug the USB cable before entering Windows and then plug it to the top.

  • First Date of General Avaialability of Oracle WebCenter Portal version 12 c

    Hi all

    My client is asking me to check the first date that the 12 c of the WebCenter Portal version was announced the general availability (release date?).

    I did a search on the website of Oracle, but wasn't able to find an ad. But I was able to find the date of WebLogic 12 c. I don't know if the first version number has been 12.0 or any other number.

    Can anyone help?

    Thanks in advance.

    Toan

    Hello

    Yes, the first version of the webcenter 12 c Portal is 12.2.1 before this version is 11.1.1.9

    Thank you

    Amey

  • How to add two lines when the second row is not visible, but also gets the first data line too?

    Mr President

    Jdev worm is 12.2.1

    How to add two lines when the second row is not visible, but also gets the first data line too?

    I want to add two lines like below picture, but want the second to remain invisible.

    tworows.png

    I asked this question but my way of asking was wrong, that's why for me once again.

    Concerning

    Try to follow these steps:

    1. in the database table to add the new column "JOIN_COLUMN" and add the new sequence "JOIN_SEQ".

    2. Add this new column in the entity object. (You can add this in entity object by right clicking on the entity object and then select "Synchronize with database" then the new column and press on sync)

    3. in your bookmark create button to create only one line NOT 2 rows.

    4 - Open the object entity--> java--> java class--> on the entity object class generate and Tick tick on the accessors and methods of data manipulation

    5 - Open the generated class to EntityImpl and go to the doDML method and write this code

      protected void doDML(int operation, TransactionEvent e)
      {
        if(operation == DML_INSERT)
        {
          SequenceImpl seq = new SequenceImpl("JOIN_SEQ", getDBTransaction());
          oracle.jbo.domain.Number seqValue = seq.getSequenceNumber();
          setJoinColumn(seqValue);
          insertSecondRowInDatabase(getAttribute1(), getAttribute2(), getAttribute3(), getJoinColumn());
        }
    
        if(operation == DML_UPDATE)
        {
          updateSecondRowInDatabase(getAttribute1(), getAttribute2(), getAttribute3(), getJoinColumn());
        }
    
        super.doDML(operation, e);
      }
    
      private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn)
      {
        PreparedStatement stat = null;
        try
        {
          String sql = "Insert into table_name (COLUMN_1,COLUMN_2,COLUMN_3,JOIN_COLUMN, HIDDEN_COLUMN) values ('" + value1 + "','" + value2 + "','" + value3 + "','" + joinColumn + "', 1)";
          stat = getDBTransaction().createPreparedStatement(sql, 1);
          stat.executeUpdate();
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
        finally
        {
          try
          {
            stat.close();
          }
          catch (Exception e)
          {
            e.printStackTrace();
          }
        }
      }
    
      private void updateSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn)
      {
        PreparedStatement stat = null;
        try
        {
          String sql = "update table_name set column_1='" + value1 + "', column_2='" + value2 + "', column_3='" + value3 + "' where JOIN_COLUMN='" + joinColumn + "'";
          stat = getDBTransaction().createPreparedStatement(sql, 1);
          stat.executeUpdate();
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
        finally
        {
          try
          {
            stat.close();
          }
          catch (Exception e)
          {
            e.printStackTrace();
          }
        }
      }
    
  • How can I select the first date (at least) and the corresponding date of two different tables source?

    I have 2 tables, INVOICE and INVOICE_REFNUM similar to below. I'm writing a query that withdrawing the first date (less) for a single record remaining the two tables. Each table records the receipt of invoices, but according to the source of the received invoice some may reside in INVOICE_REFNUM and others the INVOICE table. I also use DECODE on the topic of INVOICE_SOURCE, when the date less is taken from the INVOICE table that contains that field, so if the date is in the field INVOICE_REFNUM DECODE is not necessary. Example:

    INVOICE (table)

    INVOICE_GID INVOICE_SOURCE INSERT_DATE

    ABC. AVRT123 I HAVE 11/03/2012-15:49:32

    ABC. CNWY234 G 12/03/2012 14:07:30

    ABC. UPGF678 M 15/03/2012 20:21:54

    INVOICE_REFNUM (table)

    INVOICE_GID INVOICE_REFNUM_QUAL INVOICE_REFNUM_VALUE INSERT_DATE

    ABC. AVRT123 SOURCE ACS 11/03/2012 14:49:32

    ABC. CNWY234 SOURCE CSA 12/03/2012 13:07:30

    ABC. UPGF678 SOURCE ACS 15/03/2012 21:21:54

    My decode statement is: DECODE ("INVOICE_SOURCE, 'I', 'IDE', 'G', ' Auto-Pay", ', 'Manual')

    If I were to write a query on these two tables, the output will resemble the following:

    INVOICE_GID INVOICE_SOURCE INSERT_DATE

    ABC. AVRT123 ACS 11/03/2012 14:49:32

    ABC. CNWY234 ACS 12/03/2012 13:07:30

    ABC. UPGF678 Manual 15/03/2012 20:21:54

    I worked on it for 2 days, and I was able to pull a date by using the following SQL code, but cannot determine how to extract the corresponding source:

    SELECT THE LEAST (GLOGOWNER. INVOICE_REFNUM. INSERT_DATE, GLOGOWNER. THE INVOICE. INSERT_DATE) AS 'DATE OF THE INVOICE.

    GLOGOWNER. THE INVOICE. INVOICE_GID,

    DECODE (GLOGOWNER. THE INVOICE. INVOICE_SOURCE, 'I', 'IDE', 'G', 'Auto-Pay', ', 'Manual').

    GLOGOWNER. INVOICE_REFNUM. INVOICE_REFNUM_VALUE

    OF GLOGOWNER. INVOICE

    LEFT JOIN GLOGOWNER. INVOICE_REFNUM

    ON GLOGOWNER. THE INVOICE. INVOICE_GID = GLOGOWNER. INVOICE_REFNUM. INVOICE_GID

    WHERE GLOGOWNER. INVOICE_REFNUM. INVOICE_REFNUM_VALUE = "ACS."

    AND GLOGOWNER. INVOICE_REFNUM. INVOICE_REFNUM_QUAL_GID = 'SOURCE '.

    AND GLOGOWNER. THE INVOICE. INVOICE_TYPE = 'I '.

    ORDER OF GLOGOWNER. THE INVOICE. INVOICE_GID

    Any help is greatly appreciated!

    Best regards

    -Adam

    Hello

    Is that what you want?

    SELECT i.invoice_gid

    CASE

    WHEN ir.insert_date<= i.insert_date ="" then ="">

    WHEN i.invoice_souce = 'I' and THEN 'EDI '.

    WHEN i.invoice_souce = 'G' THEN 'debit '.

    WHEN i.invoice_souce = am' THEN 'manual '.

    END AS invoice_source

    , The LEAST (i.insert_date, ir.insert_date) AS insert_date

    I have the Bill OF

    JOIN invoice_refnum ON i.invoice_gid = ir.invoice_gid ir

    WHERE ir.invoice_refnum_value = 'ACS '.

    AND ir.invoice_refnum_qual_gid = 'SOURCE '.

    AND i.invoice_type = 'I '.

    ORDER BY i.invoice_gid

    ;

    There is no reason to do an outer join if you only want the lines with specific values anyway.

    What happens if the 2 tables have exactly the same invoice_date?  The query above takes the invoice_source of invoice_refnum in this case, but that can easily be changed.

    Or the other of the insert_dates can be NULL?

    I hope that answers your question.

    Otherwise, thank you post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also after the results you want from these data (otherwise what you have already posted).

    Explain, using specific examples, how you get these results from these data.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002#9362002

  • Hi, I already have a plan photograph on creative cloud. But I need a first. How can I change to a more complete?

    Hi, I already have a plan photograph on creative cloud. But I need a first. How can I change to a more complete?

    Hi Gabrielle,.

    You can absolutely put the comprehensive plan as it will provide you with the applications of photography and the first pro and many other applications.

    First of all, you will have to renounce this project of photography under the help below document:

    Cancel your membership creative cloud

    Once, it is cancelled, then you can register for the different regime according to the link below:

    Pricing plans and creative Cloud membership | Adobe Creative Cloud

    Otherwise, you can buy the plan of the only app for first with the plan of photography.

    Kind regards

    Sheena

  • need of payment date

    Need of payment date

    Hi Cynthia Trossbach,.

    This link seems relevant to your query - manage your membership and payments | Cloud Creative

    Please follow the detailed instructions and let me know if you face any problem.

    Kind regards

    Rahul Tyagi

  • Instant orphaned files - need to recover data on the basic disk

    Hello

    I'm sure this has been asked several times before, but how merge content from an instant orphan to the basic disk?

    Reading over there seem to be several different methods to do so.

    I have a virtual machine with three RDM, the virtual machine is running at the wide base VMDK disks but there is a single snapshot file associated with each base VMDK, snapshots do not appear in the Snapshot Manager.

    I tried to change the snapshot. The VMDK files and change the parent CIDs for the basic disk, but still not instant show in the Snapshot Manager.

    Is the best way to stop the virtual machine, remove the inventory and then add it to the inventory, I don't see the shots if the parent CID is correct?

    What is a better method?

    2. turn off then turn off the virtual machine (if it is not already off). Stop the current virtual machine with any Active snapshots.

    3. once the virtual machine is completely turned off, create a unique snapshot of the virtual machine and do not feed upward after this step.

    4 browse your data store for the virtual machine and look for the numbers you hard files. Instant latest should only be a few megabytes, and you want one that is just before that.

    5. go to the command line console and edit the .vmx for your virtual machine in the container for data store. Looking for a similar article to the following for each of your virtual disks.

    scsi0:0.present = "true"
    scsi0:0.fileName = "???-00002.vmdk"
    scsi0:0.deviceType = "scsi-hardDisk"

    You want to change the "scsi0:0.fileName =" section under the same file name that you found in step 4. You will need to repeat this in the file for each virtual disk on your VM.
    Save the .vmx file, overwriting the original.

    6. now, it will be a long process, if the hard files are large (more than 20 concerts) and can last several hours. During this process, you may lose connectivity to your ESX Server on the client of the infrastructure. What you need to do is run the below command from within the container to store the virtual machine data.

    vmware-cmd <your .vmx file> removesnapshots

    7. once the previous step is complete, check your VM settings in client infrastructure and check that your virtual disks are now pointing to the original hard file (does not contain de-00001 etc.). If everything was successful, you should be able to power to the top of your VM.

    8. once the virtual machine is running and check the operation, you can remove the last numbered - 0000x.vmdk that was created from your snapshot in the third stage (should only be a few megabytes). This file must have been ignored by the instant withdrawal because you have changed the .vmx file.

    Question I have is if the basic disk has been changed today I lose all changes today when merging the snapshots (which have not been written to since 18:00 yesterday)- or will be the basic disk back to 18:00 yesterday and lose all changes today?

    If you need to extract data from instant orphans, you know that you can NOT do without altering the current state
    new files from today will still be there - but they are not referenced in the MFT and other pieces are replaced by old data of the orphan snapshot
    If you must do this with a backup...

    or - possibly use a snashot of the RDM, as it is now...

    in any case – which gives good advice is almost impossible without sitting in front of the case

  • Need to transfer data from sql server at EBS

    I need to transfer data from Mirco Soft SQL server database Oracle (EBS).

    Please guide me how can I achieve this milestone in best way.

    Please provide the price of licenses of the Golden Gate and other product adapted SQL SERVER GATEWAY ect


    Thanks in advance

    There are a lot of options

    1 using SQL Server linked server is so easy
    http://www.mssqltips.com/sqlservertip/1433/how-to-setup-linked-servers-for-SQL-Server-and-Oracle-64-bit-client/
    2. use SSIS
    http://www.mssqltips.com/sqlservertip/2011/export-SQL-Server-data-to-Oracle-using-SSIS/
    3. using sqldeveloper
    http://St-curriculum.Oracle.com/OBE/DB/hol08/sqldev_migration/MSSQLServer/migrate_microsoft_sqlserver_otn.htm#T9

    hope this helps,

    concerning
    http://www.oracleracexpert.com
    ORA-19755 at the start of the recovery/DB
    | http://www.oracleracexpert.com/2009/09/ora-19755-could-not-open-change.html
    Error ORA-07445 and the reasons for which it
    http://www.oracleracexpert.com/2009/08/ora-07445-error.html

  • I need my first empty loading page!

    Hello world

    I need the first empty loading page (just a transparent background would) but for the moment it loads the first page of the text. I want the text to appear when I hit the home button (named: mc.menuBtn1_btn). I have a little problem with the following code. All ideas welcome

    I want the buttons to slide in from left to right and then x to settle in position, with no text on the screen.

    Then, when I hit the home button, the home page appears, followed by all the other buttons in the menu that I decide to click.

    I don't want to create scenes because he is everything in AS3.

    Hope that clarifies things

    Fl.transitions import. *;

    Fl.transitions.easing import. *;

    the main menu in place from the start of the Tween

    var moveTween:Tween = new Tween (mainmenu_mc, "x", Elastic.easeOut, mainmenu_mc.x, 1, 20, true);

    claim of MCs of the library to use on stage as needed using addChild

    var p1:page1 = new page 1;

    var p2:page2 = new page2;

    var p3:page3 = new page3;

    var p4:page4 = new page 4;

    var p5:page5 = new page5.

    var p6:page6 = new page 6;

    var p7:page7 = new page 7;

    var p8:page8 = new page8.

    var p9:page9 = new page9.

    pageContainer_mc.addChild (p1);

    load the container of the page above to run a Tween

    var pageMoveTween:Tween = new Tween (pageContainer_mc, "y", Elastic.easeOut, 0, 0, 2, true);

    New

    mainmenu_mc.menuBtn1_btn.addEventListener (MouseEvent.CLICK, btn1Click);

    mainmenu_mc.menuBtn2_btn.addEventListener (MouseEvent.CLICK, btn2Click);

    mainmenu_mc.menuBtn3_btn.addEventListener (MouseEvent.CLICK, btn3Click);

    mainmenu_mc.menuBtn4_btn.addEventListener (MouseEvent.CLICK, btn4Click);

    mainmenu_mc.menuBtn5_btn.addEventListener (MouseEvent.CLICK, btn5Click);

    mainmenu_mc.menuBtn6_btn.addEventListener (MouseEvent.CLICK, btn6Click);

    mainmenu_mc.menuBtn7_btn.addEventListener (MouseEvent.CLICK, btn7Click);

    mainmenu_mc.menuBtn8_btn.addEventListener (MouseEvent.CLICK, btn8Click);

    mainmenu_mc.menuBtn9_btn.addEventListener (MouseEvent.CLICK, btn9Click);

    function btn1Click (event: MouseEvent): void {}

    "Home" button actions

    var btn1Outro:Tween = new Tween (pageContainer_mc, "alpha", Strong.easeOut, 1, 0, 1, true);

    btn1Outro.addEventListener (TweenEvent.MOTION_FINISH, runBtn1Transition);

    function runBtn1Transition (event: TweenEvent): void {}

    pageContainer_mc.removeChildAt (1);

    pageContainer_mc.addChild (p1);

    var btn1Intro:Tween = new Tween (pageContainer_mc, "alpha", Strong.easeOut, 0, 1, 1, true);

    }

    }

    function btn2Click (event: MouseEvent): void {}

    var btn2Outro:Tween = new Tween (pageContainer_mc, "alpha", Strong.easeOut, 1, 0, 1, true);

    btn2Outro.addEventListener (TweenEvent.MOTION_FINISH, runBtn2Transition);

    function runBtn2Transition (event: TweenEvent): void {}

    pageContainer_mc.removeChildAt (1);

    pageContainer_mc.addChild (p2);

    var btn2Intro:Tween = new Tween (pageContainer_mc, "alpha", Strong.easeOut, 0, 1, 1, true);

    }

    etc etc etc...

    Here's an alternative... instead of add the p1 to it at the beginning, just add an empty movieclip...

    var is null: MovieClip = new MovieClip();

    pageContainer_mc.addChild (nothing);

    load the container of the page above to run a Tween

    var pageMoveTween:Tween = new Tween (pageContainer_mc, "y", Elastic.easeOut, 0, 0, 2, true);

  • Need to recover data in tabular form for background processing

    Hi all
    I need to extract data from a form in a table to perform database operations. This tabular presentation has no editable fields as well. I tried to use the APEX_APPLICATION application items. G_F01, APEX_APPLICATION. G_F02... The problem is that I am not able to retrieve the field references l f01, fo2... for the unchangeable fields... However, I need to retrieve these values as well as for database operations that must be performed on the update. Any help would be appreciated
    Kind regards
    Vignesh

    Add any value you want using the apex_item.hidden function. It will not be returned but will be available in the form with the corresponding editable/visible ones.

    Phil

  • Needing a maximum date using the group value of

    Create table student (dept number(10), dep_name varchar2(10),join_date date,years_attended number(10),end_date date);
     
    insert into student values (1,'I',to_date('3/7/1917','MM/DD/YYYY'),4,to_date('8/26/1987','MM/DD/YYYY'));
    insert into student values (1,'I',to_date('1/1/1900','MM/DD/YYYY'),4,to_date('8/26/1932','MM/DD/YYYY'));
    insert into student values (1,'D',to_date('1/1/1920','MM/DD/YYYY'),5,to_date('8/26/1994','MM/DD/YYYY'));
    insert into student values (1,'C',to_date('1/1/1920','MM/DD/YYYY'),6,to_date('8/26/1945','MM/DD/YYYY'));
    insert into student values (2,'I',to_date('7/1/1900','MM/DD/YYYY'),3,to_date('8/26/1932','MM/DD/YYYY'));
    insert into student values (2,'I',to_date('8/16/1916','MM/DD/YYYY'),9,to_date('8/26/1923','MM/DD/YYYY'));
    insert into student values (2,'D',to_date('8/16/1916','MM/DD/YYYY'),10,to_date('8/26/1987','MM/DD/YYYY'));
    insert into student values (3,'I',to_date('3/7/1917','MM/DD/YYYY'),4,to_date('8/26/1987','MM/DD/YYYY'));
    insert into student values (3,'D',to_date('7/28/1920','MM/DD/YYYY'),6,to_date('8/26/1945','MM/DD/YYYY'));
    insert into student values (3,'I',to_date('7/28/1920','MM/DD/YYYY'),8,to_date('8/26/1965','MM/DD/YYYY'));
    insert into student values (4,'I',to_date('12/31/1924','MM/DD/YYYY'),2,to_date('8/26/1998','MM/DD/YYYY'));
    insert into student values (4,'I',to_date('6/10/1929','MM/DD/YYYY'),1,to_date('8/26/1943','MM/DD/YYYY'));
    insert into student values (4,'C',to_date('1/17/1927','MM/DD/YYYY'),4,to_date('8/26/1955','MM/DD/YYYY'));
    insert into student values (4,'C',to_date('6/10/1929','MM/DD/YYYY'),30,to_date('8/26/1967','MM/DD/YYYY'));
    insert into student values (5,'D',to_date('2/10/1931','MM/DD/YYYY'),2,to_date('8/26/1943','MM/DD/YYYY'));
    insert into student values (5,'I',to_date('2/10/1931','MM/DD/YYYY'),24,to_date('8/26/1962','MM/DD/YYYY'));
    commit;
    I need a join_date of date value maximum for each Department. If max (join_date) has two records for each dept max (end_date) are to be considered. I used a select query
    select * from student where join_date in (select 
    max(join_date) from student group by dept);
    gives me the following result
    1     D     1/1/1920     5     8/26/1994
    1     C     1/1/1920     6     8/26/1945
    2     I     8/16/1916     9     8/26/1923
    2     D     8/16/1916     10     8/26/1987
    3     D     7/28/1920     6     8/26/1945
    3     I     7/28/1920     8     8/26/1965
    4     I     6/10/1929     1     8/26/1943
    4     C     6/10/1929     30     8/26/1967
    5     D     2/10/1931     2     8/26/1943
    5     I     2/10/1931     24     8/26/1962
    But I'm looking for the result that gives me only a maximum value for each column dept. First of all, it should look like to a maximum value of join_date, so two records even join_date max (end_date) are to be considered. The result should be sumthing like this
    1     D     1/1/1920     5     8/26/1994
    2     D     8/16/1916     10     8/26/1987
    3     I     7/28/1920     8     8/26/1965
    4     C     6/10/1929     30     8/26/1967
    5     I     2/10/1931     24     8/26/1962
    Can you please tell me how to rewrite the select query for results above.

    Published by: user11872870 on August 2, 2011 17:29

    Published by: user11872870 on August 2, 2011 17:36

    Hello

    This is called a Query Top - N , and this is a way to do it:

    WITH     got_r_num     AS
    (
         SELECT     student.*
         ,     ROW_NUMBER () OVER ( PARTITION BY  dept
                                   ORDER BY          join_date     DESC
                             ,                end_date     DESC
                           )      AS r_num
         FROM    student
    )
    SELECT       dept, dep_name, join_date, years_attended, end_date
    FROM       got_r_num
    WHERE       r_num     = 1
    ORDER BY  dept
    ;
    

    Another way is similar to what you posted:

    SELECT    *
    FROM       student
    WHERE        (dept, join_date, end_date)
                   IN (
                        SELECT    dept
                   ,       MAX (join_date)
                   ,       MAX (end_date) KEEP (DENSE_RANK LAST ORDER BY join_date)
                   FROM      student
                   GROUP BY     dept
                   );
    

    I suspect that the first way (using ROW_NUMBER) will be faster.
    In addition, the ROW_NUMBER approach is guaranteed to return only 1 line by Department using the approach of GROUP BY, if there is a link on join_date and end_date then it will return all the contenders in this Department. using ROW_NUMBER, it is easy to add expressions to tie-break as much as you want, and, if there is still a tie, it will be arbirarily pick, one lines involved in the tie as #1.

    Thanks for posting the CREATE TABLE and INSERT! It is very useful.

    Published by: Frank Kulash, August 2, 2011 21:00
    Added GROUP BY alternative

Maybe you are looking for