How to segragate correct and incorrect records in a msg

Hi All,
I am working on a file-XI(BPM)-Oracle scenario.
My input file has a field 'Applicant No', which is mandatory in the Oracle table.
In my BPM, I have a transformation generating two message types, one for the corect msg and the other for the error.
Next what i am doing it by means of 'Fork Step' in BPM i am segragating these msgs and sending the correct ones to the Oracle table and the erroneous ones to a file in the sender system.
At runtime my input file contains two records, one correct and the other incorrect.
But both the records are getting sent two both the receivers i.e in sender an error file is getting created with both the records and both the records are also trying to get inserted into the database.
How can i overcome this problem? Is there any step in BPM which can actuaaly seperate out the two records?
Pls guide
Thanks in advance
Regards
Neetu

Hi,
Please use Switch and define your condition in the swtich based on which you want the data to flow to either file or JDBC.
From SAP Help:
You use a fork () when you want to continue a process in branches that are independent of each other, for example, to communicate with two systems that are independent of each other. The branches of the fork join in a union operator.
You use a switch () to define different processing branches for a process. The Otherwise processing branch is created automatically.
You define a condition for each processing branch (see also: Condition Editor). The condition is checked at runtime. The process is continued in the branch that is first to return the value true. If no branch returns the value true, then the process is continued in the Otherwise branch.
Regards
Vijaya

Similar Messages

  • How can we correct and process errorrecords in session and call transaction

    hai all
    how ca we correct and process error records  in session and call transaction method . tell me with coding.
    Edited by: swamy katta on May 14, 2008 10:25 AM
    Edited by: swamy katta on May 14, 2008 10:26 AM
    Edited by: swamy katta on May 14, 2008 10:27 AM

    hi,
    Check out the below sample code ...Here are the records are getting posting with call transaction method and a session is getting created with erroreneous records....
    REPORT  ztest_report
    NO STANDARD PAGE HEADING
                            LINE-SIZE 255
                            MESSAGE-ID ZRASH.
    *                 Internal Table Declarations                          *
    *--Internal Table for Data Uploading.
    DATA : BEGIN OF IT_FFCUST OCCURS 0,
             KUNNR(10),
             BUKRS(4),
             KTOKD(4),
             ANRED(15),
             NAME1(35),
             SORTL(10),
             STRAS(35),
             ORT01(35),
             PSTLZ(10),
             LAND1(3),
             SPRAS(2),
             AKONT(10),
           END OF IT_FFCUST.
    *--Internal Table to Store Error Records.
    DATA : BEGIN OF IT_ERRCUST OCCURS 0,
             KUNNR(10),
             EMSG(255),
           END OF IT_ERRCUST.
    *--Internal Table to Store Successful Records.
    DATA : BEGIN OF IT_SUCCUST OCCURS 0,
             KUNNR(10),
             SMSG(255),
           END OF IT_SUCCUST.
    *--Internal Table for Storing the BDC data.
    DATA : IT_CUSTBDC LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
    *--Internal Table for storing the messages.
    DATA : IT_CUSTMSG LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
    DATA : V_FLAG1(1) VALUE ' ',
    "Flag used for opening session.
           V_TLINES LIKE SY-TABIX,
           "For storing total records processed.
           V_ELINES LIKE SY-TABIX,
           "For storing the no of error records.
           V_SLINES LIKE SY-TABIX.
           "For storing the no of success records.
    *          Selection screen                                            *
    SELECTION-SCREEN BEGIN OF BLOCK B1.
    PARAMETERS : V_FNAME LIKE RLGRAP-FILENAME,
                 V_SESNAM  LIKE RLGRAP-FILENAME.
    SELECTION-SCREEN END OF BLOCK B1.
    *          Start-of-selection                                          *
    START-OF-SELECTION.
    *-- Form to upload flatfile data into the internal table.
      PERFORM FORM_UPLOADFF.
    *        TOP-OF-PAGE                                                   *
    TOP-OF-PAGE.
      WRITE:/ 'Details of the error and success records for the transaction'
      ULINE.
      SKIP.
    *          End of Selection                                            *
    END-OF-SELECTION.
    *-- Form to Generate a BDC from the Uploaded Internal table
      PERFORM FORM_BDCGENERATE.
    *--To write the totals and the session name.
      PERFORM FORM_WRITEOP.
    *&      Form  form_uploadff
    *     Form to upload flatfile data into the internal table.
    FORM FORM_UPLOADFF .
    *--Variable to change the type of the parameter file name.
      DATA : LV_FILE TYPE STRING.
      LV_FILE = V_FNAME.
    *--Function to upload the flat file to the internal table.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME                      =  LV_FILE
    *     FILETYPE                      = 'ASC'
          HAS_FIELD_SEPARATOR           = 'X'
    *     HEADER_LENGTH                 = 0
    *     READ_BY_LINE                  = 'X'
    *     DAT_MODE                      = ' '
    *   IMPORTING
    *     FILELENGTH                    =
    *     HEADER                        =
        TABLES
          DATA_TAB                      = IT_FFCUST
        EXCEPTIONS
          FILE_OPEN_ERROR               = 1
          FILE_READ_ERROR               = 2
          NO_BATCH                      = 3
          GUI_REFUSE_FILETRANSFER       = 4
          INVALID_TYPE                  = 5
          NO_AUTHORITY                  = 6
          UNKNOWN_ERROR                 = 7
          BAD_DATA_FORMAT               = 8
          HEADER_NOT_ALLOWED            = 9
          SEPARATOR_NOT_ALLOWED         = 10
          HEADER_TOO_LONG               = 11
          UNKNOWN_DP_ERROR              = 12
          ACCESS_DENIED                 = 13
          DP_OUT_OF_MEMORY              = 14
          DISK_FULL                     = 15
          DP_TIMEOUT                    = 16
          OTHERS                        = 17
      IF SY-SUBRC = 0.
    *--Deleting the headings from the internal table.
        DELETE IT_FFCUST INDEX 1.
    *--Getting the total number of records uploaded.
        DESCRIBE TABLE IT_FFCUST LINES V_TLINES.
      ENDIF.
    ENDFORM.                    " form_uploadff
    *&      Form  Form_bdcgenerate
    *     Form to Generate a BDC from the Uploaded Internal table
    FORM FORM_BDCGENERATE .
    *--Generating the BDC table for the fields of the internal table.
      LOOP AT IT_FFCUST.
        PERFORM POPULATEBDC USING :
                                    'X' 'SAPMF02D' '0105',
                                    ' ' 'BDC_OKCODE'  '/00' ,
                                    ' ' 'RF02D-KUNNR' IT_FFCUST-KUNNR,
                                    ' ' 'RF02D-BUKRS' IT_FFCUST-BUKRS,
                                    ' ' 'RF02D-KTOKD' IT_FFCUST-KTOKD,
                                    'X' 'SAPMF02D' '0110' ,
                                    ' ' 'BDC_OKCODE'  '/00',
                                    ' ' 'KNA1-ANRED'  IT_FFCUST-ANRED,
                                    ' ' 'KNA1-NAME1' IT_FFCUST-NAME1,
                                    ' ' 'KNA1-SORTL'  IT_FFCUST-SORTL,
                                    ' ' 'KNA1-STRAS' IT_FFCUST-STRAS,
                                    ' ' 'KNA1-ORT01' IT_FFCUST-ORT01,
                                    ' ' 'KNA1-PSTLZ' IT_FFCUST-PSTLZ,
                                    ' ' 'KNA1-LAND1' IT_FFCUST-LAND1,
                                    ' ' 'KNA1-SPRAS' IT_FFCUST-SPRAS,
                                    'X' 'SAPMFO2D' '0120',     
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0125',     
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0130',     
                                    ' ' 'BDC_OKCODE'  '=ENTR',
                                    'X' 'SAPMF02D' '0340',     
                                    ' ' 'BDC_OKCODE'  '=ENTR',
                                    'X' 'SAPMF02D' '0360',
                                    ' ' 'BDC_OKCODE'  '=ENTR',
                                    'X' 'SAPMF02D' '0210',     
                                    ' ' 'KNB1-AKONT'  IT_FFCUST-AKONT,
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0215',
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0220',     
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0230',     
                                    ' ' 'BDC_OKCODE'  '=UPDA'.
    *--Calling the transaction 'fd01'.
        CALL TRANSACTION 'FD01' USING IT_CUSTBDC MODE 'N' UPDATE 'S'
        MESSAGES INTO IT_CUSTMSG.
        IF SY-SUBRC <> 0.
    *--Populating the error records internal table.
          IT_ERRCUST-KUNNR = IT_FFCUST-KUNNR.
          APPEND IT_ERRCUST.
          CLEAR IT_ERRCUST.
    *--Opening a session if there is an error record.
          IF V_FLAG1 = ' '.
            PERFORM FORM_OPENSESSION.
            V_FLAG1 = 'X'.
          ENDIF.
    *--Inserting the error records into already open session.
          IF V_FLAG1 = 'X'.
            PERFORM FORM_INSERT.
          ENDIF.
    *--Populating the Success records internal table.
        ELSE.
          IT_SUCCUST-KUNNR = IT_FFCUST-KUNNR.
          APPEND IT_SUCCUST.
          CLEAR IT_SUCCUST.
        ENDIF.
    *--Displaying the messages.
        IF NOT IT_CUSTMSG[] IS INITIAL.
          PERFORM FORM_FORMATMSG.
        ENDIF.
    *--Clearing the message and bdc tables.
        CLEAR : IT_CUSTBDC[],IT_CUSTMSG[].
      ENDLOOP.
    *--Getting the total no of error records.
      DESCRIBE TABLE IT_ERRCUST LINES V_ELINES.
    *--Getting the total no of successful records.
      DESCRIBE TABLE IT_SUCCUST LINES V_SLINES.
    *--Closing the session only if it is open.
      IF V_FLAG1 = 'X'.
        PERFORM FORM_CLOSESESS.
      ENDIF.
    ENDFORM.                    " Form_bdcgenerate
    *&      Form  populatebdc
    *       FOrm to Populate the BDC table.
    FORM POPULATEBDC  USING    VALUE(P_0178)
                               VALUE(P_0179)
                               VALUE(P_0180).
      IF P_0178 = 'X'.
        IT_CUSTBDC-PROGRAM = P_0179.
        IT_CUSTBDC-DYNPRO = P_0180.
        IT_CUSTBDC-DYNBEGIN = 'X'.
      ELSE.
        IT_CUSTBDC-FNAM = P_0179.
        IT_CUSTBDC-FVAL = P_0180.
      ENDIF.
      APPEND IT_CUSTBDC.
      CLEAR IT_CUSTBDC.
    ENDFORM.                    " populatebdc
    *&      Form  FORM_OPENSESSION
    *       Form to Open a session.
    FORM FORM_OPENSESSION .
    *--Variable to convert the given session name into reqd type.
      DATA : LV_SESNAM(12).
      LV_SESNAM = V_SESNAM.
    *--Opening a session.
      CALL FUNCTION 'BDC_OPEN_GROUP'
       EXPORTING
         CLIENT                    = SY-MANDT
         GROUP                     = LV_SESNAM
         HOLDDATE                  = '20040805'
         KEEP                      = 'X'
         USER                      = SY-UNAME
         PROG                      = SY-CPROG
    *  IMPORTING
    *    QID                       =
       EXCEPTIONS
         CLIENT_INVALID            = 1
         DESTINATION_INVALID       = 2
         GROUP_INVALID             = 3
         GROUP_IS_LOCKED           = 4
         HOLDDATE_INVALID          = 5
         INTERNAL_ERROR            = 6
         QUEUE_ERROR               = 7
         RUNNING                   = 8
         SYSTEM_LOCK_ERROR         = 9
         USER_INVALID              = 10
         OTHERS                    = 11
      IF SY-SUBRC <> 0.
        WRITE :/ 'Session not open'.
      ENDIF.
    ENDFORM.                    " FORM_OPENSESSION
    *&      Form  FORM_INSERT
    *       fORM TO INSERT ERROR RECOED INTO A SESSION.
    FORM FORM_INSERT .
    *--Inserting the record into session.
      CALL FUNCTION 'BDC_INSERT'
        EXPORTING
          TCODE                  = 'FD01'
    *     POST_LOCAL             = NOVBLOCAL
    *     PRINTING               = NOPRINT
    *     SIMUBATCH              = ' '
    *     CTUPARAMS              = ' '
        TABLES
          DYNPROTAB              = IT_CUSTBDC
        EXCEPTIONS
          INTERNAL_ERROR         = 1
          NOT_OPEN               = 2
          QUEUE_ERROR            = 3
          TCODE_INVALID          = 4
          PRINTING_INVALID       = 5
          POSTING_INVALID        = 6
          OTHERS                 = 7
      IF SY-SUBRC <> 0.
        WRITE :/ 'Unable to insert the record'.
      ENDIF.
    ENDFORM.                    " FORM_INSERT
    *&      Form  FORM_CLOSESESS
    *       Form to Close the Open Session.
    FORM FORM_CLOSESESS .
      CALL FUNCTION 'BDC_CLOSE_GROUP'
        EXCEPTIONS
          NOT_OPEN    = 1
          QUEUE_ERROR = 2
          OTHERS      = 3.
      IF SY-SUBRC <> 0.
      ENDIF.
    ENDFORM.                    " FORM_CLOSESESS
    *&      Form  FORM_FORMATMSG
    *       Form to format messages.
    FORM FORM_FORMATMSG .
    *--Var to store the formatted msg.
      DATA : LV_MSG(255).
      CALL FUNCTION 'FORMAT_MESSAGE'
        EXPORTING
          ID        = SY-MSGID
          LANG      = SY-LANGU
          NO        = SY-MSGNO
          V1        = SY-MSGV1
          V2        = SY-MSGV2
          V3        = SY-MSGV3
          V4        = SY-MSGV4
        IMPORTING
          MSG       = LV_MSG
        EXCEPTIONS
          NOT_FOUND = 1
          OTHERS    = 2.
      IF SY-SUBRC = 0.
        WRITE :/ LV_MSG.
      ENDIF.
      ULINE.
    ENDFORM.                    " FORM_FORMATMSG
    *&      Form  form_writeop
    *       To write the totals and the session name.
    FORM FORM_WRITEOP .
      WRITE :/ 'Total Records Uploaded :',V_TLINES,
               / 'No of Error Records :',V_ELINES,
               / 'No of Success Records :',V_SLINES,
               / 'Name of the Session :',V_SESNAM.
      ULINE.
    ENDFORM.                    " form_writeop
    *  if routeindicator is initial.
    *   LOOP AT IT_YMMEE00090.
    *      LV_LENGTH = STRLEN( IT_YMMEE00090-CHANGETYPE ).
    *      IF SY-TABIX = '1'.
    *        IF  IT_YMMEE00090-CHANGETYPE = 'B' AND LV_LENGTH = 1.
    *          ROUTEINDICATOR = 'S'.
    *        ELSEIF IT_YMMEE00090-CHANGETYPE = 'R' AND LV_LENGTH = 1.
    *          ROUTEINDICATOR = 'S'.
    *        ELSEIF IT_YMMEE00090-CHANGETYPE = 'S' AND LV_LENGTH = 1.
    *          ROUTEINDICATOR = 'S'.
    *        ELSEIF IT_YMMEE00090-CHANGETYPE CA 'BRSCD' AND LV_LENGTH GT 1
    *                                          AND LV_LENGTH LE 5.
    *          ROUTEINDICATOR = 'S'.
    *        ENDIF.
    *      ELSE.
    *        IF  IT_YMMEE00090-CHANGETYPE = 'B' AND LV_LENGTH = 1 AND
    *                                         ROUTEINDICATOR = 'S'.
    *          ROUTEINDICATOR = 'S'.
    *        ELSEIF IT_YMMEE00090-CHANGETYPE = 'R' AND LV_LENGTH = 1 AND
    *                                         ROUTEINDICATOR = 'S'.
    *          ROUTEINDICATOR = 'S'.
    *        ELSEIF IT_YMMEE00090-CHANGETYPE = 'S' AND LV_LENGTH = 1 AND
    *                                         ROUTEINDICATOR = 'S'.
    *          ROUTEINDICATOR = 'S'.
    *        ELSEIF IT_YMMEE00090-CHANGETYPE CA 'BRSCD' AND LV_LENGTH GT 1
    *                  AND LV_LENGTH LE 5 AND ROUTEINDICATOR = 'S'.
    *          ROUTEINDICATOR = 'S'.
    *        ENDIF.
    *      ENDIF.
    *  ENDLOOP.
    * endif.

  • Getting Correct and Incorrect to show on my GUI

    What am i missing to allow correct and incorrect to show on my GUI.
    package anaquiz;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class AnAQuiz extends JPanel {
        private JComboBox choice;
        private JLabel label;
        private JTextField text;
        Button CheckAnswer;
        Button TryAgain;
        private String Answer1 = "Wilson";
        private String Answer2 = "Ace";
        private String Answer3 = "Yes";
        private String input = " ";
        boolean Answer = false;
        JLabel testresult;
        public AnAQuiz() {
            choice = new JComboBox();
            label = new JLabel();
            label.setBackground(Color.blue);
            choice.addItem("Tennis Question #1");
            choice.addItem("Tennis Question #2");
            choice.addItem("Tennis Question #3");
            text = new JTextField(42); //step 4
            Listener listen = new Listener();
            choice.addActionListener(listen);
            add(choice);
            add(label);
            add(text);
        private class Listener implements ActionListener {
            public void actionPerformed(ActionEvent event ) {
            int c = choice.getSelectedIndex();
                switch (c) {
                case 0:
                    label.setText("Whats the famous tennis brand that begins with 'W'?");
                    if (input.equals(Answer1))testresult = new JLabel("Correct!"); //Having difficulty getting the correct and the incorrect to show as a label
                     else testresult = new JLabel("Incorrect!");
                     break;
                 case 1:
                    label.setText("What do you call when someone misses a serve?");
                    break;
                 case 2:
                    label.setText("Should you shake hands after a match?");
                    break;
        public static void main(String[] args)
            JFrame frame = new JFrame("Quiz");
             frame.getContentPane().add(new AnAQuiz());
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.pack();
            frame.show();

    Basically adding in the code tjacobs01 demo'd for you and a little extra.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class AnAQuiz extends JPanel {
        private int chosen;
        private JComboBox choice;
        private JLabel label;
        private JTextField text;
        Button CheckAnswer;
        Button TryAgain;
        private String Answer1 = "Wilson";
        private String Answer2 = "Ace";
        private String Answer3 = "Yes";
        private String input = " ";
        boolean Answer = false;
        JLabel testresult = new JLabel("");
        public AnAQuiz() {
            choice = new JComboBox();
            label = new JLabel();
            label.setBackground(Color.blue);
            choice.addItem("Tennis Question #1");
            choice.addItem("Tennis Question #2");
            choice.addItem("Tennis Question #3");
            text = new JTextField(42); //step 4
            Listener listen = new Listener();
            choice.addActionListener(listen);
            setLayout(new BoxLayout(this, 0));
            add(choice);
            add(label);
            add(text);
              text.addKeyListener(new KeyAdapter() {
              public void keyPressed(KeyEvent ke) {
                if (ke.getKeyCode() == KeyEvent.VK_ENTER) {
                  input = text.getText();
                  if ( chosen == 0  &&  input.equals(Answer1) )
                    label.setText("Correct");
                  else if ( chosen == 1  &&  input.equals(Answer2) )
                    label.setText("Correct");
                  else if ( chosen == 2  &&  input.equals(Answer3) )
                    label.setText("Correct");
                  else
                    label.setText("Incorrect");
            add(testresult);
            testresult.setVisible(false);
        private class Listener implements ActionListener {
            public void actionPerformed(ActionEvent event ) {
            chosen = choice.getSelectedIndex();
            testresult.setVisible(true);
                switch (chosen) {
                case 0:
                    label.setText("Whats the famous tennis brand that begins with 'W'?");
                    break;
                 case 1:
                    label.setText("What do you call when someone misses a serve?");
                    break;
                 case 2:
                    label.setText("Should you shake hands after a match?");
                    break;
                 default:
                    break;
                text.requestFocus();
        public static void main(String[] args)
            JFrame frame = new JFrame("Quiz");
            frame.getContentPane().add(new AnAQuiz());
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.pack();
            frame.setVisible(true);
    }

  • How can I correct and prevent white eyes when taking picture with my Iphone4S?

    How can I correct and prevent white eyes when taking picture with IPhone 4S?

    Hi Friend,
    To correct red eyes on pictures, go to Photos app, tap the photo you want correct, tap Edit, Tap a red ball placed in the bottom of the screen, tap manually the red eyes, and Confirm.
    Hope it will be helpful

  • How do I track number of correct and incorrect mouse clicks in Hotspot quiz?

    Hi All,
    I need to create a quiz that allows me to know how many correct answers the user has clicked (there will be 20ish) and how many clicks were incorrect. Is there anyway of doing this?
    Many Thanks
    Chris M

    Hi,
    Thanks, I am currently running version 4 of captivate. The intention is that all 20 hotspots will appear in the same slide.
    So you can get an idea of the project, it will train users how to proof documents. A document shows on screen users would then click on every error they can spot. For every hotspot not in the correct area (IE over a spelling mistake) gets marked as a different variable (IE You were wrong X times).
    Thanks
    Chris M

  • How do I fix and Incorrect Structure error in a pdf document

    I am recieving an error message when trying to extract pages from 162 page document to email and break up into several smaller emails. The message says "incorrect structure". How do I fix this so I can email the file

    Thanx!!!
    that is, if there are entries in document "hello 1234", then the search all words will identify it as two words "hello" and "1234". and then I check with regular expressions where the numbers.. ?
    ps. and I have not found yet any command, that replace the founded text from javascript))
    yes.. in acrobat X pro.. tools-protection-search&remove is also avaible....! (but, no regular in search string.. to bad...)
    thank you!

  • How to delete parent and child records?

    Hi friends,
    I have a Master table and a child table.
    The Child table got reference key with the master table without on delete cascade.
    Now, I want to delete the Master records and also it's corresponding child records.
    How to do?
    Thanks in adv,
    regards,
    Vijay

    Delete the records from the child, then delete the records from the parent in two separate delete statements. I'd prefer that you create a stored procedure that does both steps.
    Justin

  • How to delete parent and child records together ?

    Hi,
    I'm using Jdeveloper 11.1.2.2
    I want to delete a row from a table but it is showing: Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-02292: integrity constraint (TABLE1_TL_FK1) violated - child record found.So how can I delete a Child row and table row in one method ?
    I cannot access the child's VO because it is not added to the AM.
    Thanks,
    Nigel.

    John, as usually, is right with the pointer to the documentation he pasted. Just to make sure you read it carefully, let me hoghlight an important point here:
    "If the option is selected, then the composed entities do not perform the DELETE statement *on the assumption that the database ON DELETE CASCADE constraint will handle the deletion of the corresponding rows*."
    So make sure the database is setup for cascade delete as otherwise you still will not succeed
    Frank

  • HOW TO GET TOP AND BOTTOM RECORDS IN SQL STATEMENT, URGENT

    Hi,
    I want to get the TOP 2 and BOTTOM 2 records (TOP 2 SAL , BOTTOM 2 SAL) from the following query result for each department . How do I get it using a SQL statement ? Thanks
    SQL> SELECT A.DNAME, B.ENAME, B.SAL FROM DEPT A, EMP B WHERE A.DEPTNO = B.DEPTNO ORDER BY DNAME, SAL
    DNAME------------ENAME--------SAL
    ACCOUNTING-------KING--------5000
    ----------------CLARK--------2450
    ---------------MILLER--------1300
    RESEARCH--------SCOTT--------3000
    -----------------FORD--------3000
    ----------------JONES--------2975
    ----------------ADAMS--------1100
    ----------------SMITH---------800
    SALES-----------BLAKE--------2850
    ----------------ALLEN--------1600
    ---------------TURNER--------1500
    -----------------WARD--------1250
    ---------------MARTIN--------1250
    ----------------JAMES---------950
    14 rows selected.

    Search for "top-N query" in oracle doucmentation.
    Example :
    for top 2
    SELECT * FROM
    (SELECT empno FROM emp ORDER BY sal)
    WHERE ROWNUM < 3;
    for bottom 2
    SELECT * FROM
    (SELECT empno FROM emp ORDER BY sal desc)
    WHERE ROWNUM < 3;

  • How do I correct an incorrect but embedded Apple ID in order to be able to access the App Store?

    I recently installed Yosemite 10.10.1 in my iMac,  Upon receiving notice of upgrades available I attempted to access via the App Store as required.  I was directed to enter my :Apple ID and password;  however, an ID was already entered and it was not mine.  Any attempt I made to highlight and correct the ID failed - it was unresponsive.  I attempted to use management of my account to verify the correct ID;  the file showed my correct ID but when I attempted again to log in to the App Store the same incorrect and immutable ID appeared. The incorrect ID is that of my wife for her OS 10.6.8 laptop.

    1. Triple-click anywhere in the line of text below on this page to select it:
    kMDItemAppStoreHasReceipt=1
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    2. In the Finder, press command-F to open a search window, or select
              File ▹ Find
    from the menu bar. In the search window, select
              Search: This Mac
    from the row of tokens below the toolbar. Below that is a popup menu of search criteria, initially showing Kind. From that menu, select
              Other...
    A sheet will drop down. In that sheet, select
              Raw Query
    as the criterion, then click OK or press return.
    Now there will be a text box to the right of the menu of search criteria. That's where you enter the raw search query. Click in that box and paste the text you copied earlier by pressing command-V.
    3. The search window will now show all the App Store products that are installed. Compare those search results with the list of your purchases from the App Store. To see the complete list, you may need to unhide hidden purchases. If any apps were download from the App Store using other Apple ID accounts that you control, sign in to the store under each of those ID's and check the purchases.
    4. At least one of the apps in the Spotlight search results is not among your purchases in the App Store. Move each such item to the Trash, after quitting it if it's running. You may be prompted for your administrator password. Empty the Trash.
    5. Quit and relaunch the App Store. Test.
    If you find these instructions confusing, ask for an alternative method.

  • How to join audio and screen recording

    I have recorded with both the screen capture and audio capture and now want to join / merge the files into one.  Does any one know how I can do this easily? What application would I need to use? CAn it be done with iMovies?  Thanks

    m2v files are usually used in DVD authoring. Is that what you are trying to create?
    If so, you'll want a AC3 or aiff file format for the audio and use DVD Studio Pro to merge the two into VOB files.
    If this isn't what you are trying to accomplish, please offer up more information.
    x

  • How can I correct the incorrect e-mail address in adobe to send photo attachments?

    I am trying to send photo attachments in e-mail but the my address as listed is incorrect; I clicked cancel but could not get preferences and share

    I am a little unclear with your query. Could you please tell where do you see the incorrect email adress. Are you using Adobe email service to send this pictures. For that, please fo to Edit>preferences>Sharing. There you see options to edit your email preferences.
    regards,
    vaishali

  • I started downloading a movie but then realized it was not the english version. How do I correct and then download the right version?

    I started downloading a movie from ITunes but then realized it was not the English version. I stopped the download. How do I return/cancel and instead download the English version? Thanks.

    Are you sure there is an English language version available?
    You'll just have to continue with the download and then delete the movie.
    Technically all sales are final.  You can ask Apple for a refund but they aren't obligated.
    How to report an issue with your iTunes Store purchase - http://support.apple.com/kb/HT1933 - working through iTunes application and iTunes Store interface.
    iTunes Customer Service Contact - http://www.apple.com/support/itunes/contact.html

  • How can I  delete and update records using where conditions?

    I want to delete and update the coherence records with some conditions, I describe it to use SQL as follows:
    delete from "contacts" where getStreet() = "dsada";
    update contacts set getStreet() = "dddd" where getCity() = "ssss";
    Can I use the filter like query to achieve this requirement as follows:
    ValueExtractor::View vHomeStateExtractor = ChainedExtractor::create(
    ChainedExtractor::createExtractors("getHomeAddress.getState"));
    Object::View voStateName = String::create("MA");
    Set::View setResults = hCache->entrySet(
    EqualsFilter::create(vHomeStateExtractor, voStateName));
    I know I can use get and put to achieve this requirement , but it Requires a two-interaction between the client and coherence server. Does it have And another way?
    Thanks very much, and please Forgive my English is not very good.

    Hi,
    You have a couple of options for updating or deleting using a Filter.
    For deleting you can use an Entry Processor and the cache invokeAll method. Using "out of the box" Coherence you can use the ConditionalRemove entry processor. I'm a Java person so the C++ below might not be exactly right but you should get the idea.
    ValueExtractor::View vHomeStateExtractor = ChainedExtractor::create(
    ChainedExtractor::createExtractors("getHomeAddress.getState"));
    Object::View voStateName = String::create("MA");
    hCache->invokeAll(EqualsFilter::create(vHomeStateExtractor, voStateName),
    ConditionalRemove::create(AlwaysFilter.getInstance());For update you would either need to write custom Entry Processor implementations that perform the updates you require or you can use out of the box POF or Reflection ValueUpdaters that update specific fields of the entries in the cache. These valueUpdaters would be wrapped in an UpdaterProcessor so the call would be very similar to the code above.
    JK

  • Count correct and incorrect answers

    I have attached part of my code that is currently working.
    The only thing I would like to change is I would like to add
    another var counter which keeps track of wrong answer (wrong answer
    being when a user does not drop the object on the correct
    location). thanks for your time,

    initialize an incorrectCounter next to your counter and
    increment it in the else-branch of your onRelease
    if-statement.

Maybe you are looking for

  • Adode Creative Suite 3 Crashing OSX 10.9.1

    I've had Adobe Creative Suite 3 for awhile now (I mainly use Photoshop, Dreamweaver and Illustrator).  And nearly every day, one of my programs crashes while I'm using it.  I've gotten in a habit of saving often to prevent losing anything, but it's j

  • Adding additional song lists without erasing the previous content in the iPhone.

    Hi Is there a way to add additonal songs in the iPhone without deleting the songs already stored in the iPhone. The problem is that most of the original songs stored in the PC has been erased in order to free up hard disk space. Hence everytime when

  • Missing metadata after saving in LR 1.3 (Windows)

    I have touched this subject before in other threads, but I have never got around to do a proper test in 1.3 and someone asked for proof before, so here is the proof. What I did was shot a JPG with my Canon 1D Mk II and then add some IPTC tags using a

  • How to install Oracle 8i and dev6i in win ME

    Hi, anybody can inform me how to install oracle 8i personal edition and developer 6i in win-ME. email id : [email protected] Thanks in advance. null

  • Serviio with WDTV: Photos don't display

    Hi  I am running the latest WDTV Live firmware (2.0.38??) and Serviio 1.51 on a Win 7 Pro Box.  When I try to display photos in the Media Server Serviio library I get no display.   These photos do display when I use Jriver as a Media Server for WDTV