Can't stop duplicating records

THE SETUP
<br><br>PAGE 1:REPORT: View Error Records<br>
This report displays error records in my DBA_PSPR table.
<br><br>PAGE 2:Create New<br>
On this page I have 1 process running. It creates the new record in my table along with uploading a file.<br>
Process Source<br>
if ( :P2_FILE_NAME is not null ) then<br>
insert into DBA_INFRASTRUCTURE_PSPR(LINK,ERROR_NUMBER, PRODUCT, HOST_NAME, APPLICATION_NAME, DATABASE_NAME)<br>
select<br> id,:P2_ERROR_NUMBER,:P2_PRODUCT,:P2_HOST_NAME,:P2_APPLICATION_NAME,:P2_DATABASE_NAME<br>
from wwv_flow_files where name = :P2_FILE_NAME;<br><br>
delete wwv_flow_files where name = :P2_FILE_NAME;<br>
end if;<br><br>
PAGE 3:Edit/Update<br>
On this page I have 2 processes running. The first is an Automatic Row Processing (DML) type configured for Update and Delete operations.<br> It allows me to edit/update the record created through the process on page 2.The second process is a PL/SQL similar to the PAGE 2 process<br> that allows me to edit/update the file uploaded on page 2.
<br>
Process Source<br>
if ( :P3_FILE_NAME is not null ) then<br>
insert into DBA_INFRASTRUCTURE_PSPR(LINK,ERROR_NUMBER, PRODUCT, HOST_NAME, APPLICATION_NAME, DATABASE_NAME)<br>
select<br> id,:P3_ERROR_NUMBER,:P3_PRODUCT,:P3_HOST_NAME,:P3_APPLICATION_NAME,:P3_DATABASE_NAME<br>
from wwv_flow_files where name= :P3_FILE_NAME;<br><br>
delete wwv_flow_files where name=:P3_FILE_NAME;<br>
end if;<br><br>
THE PROBLEM
I create a new 'error record' on page two. I submit it and view it in the report on page one. I click 'edit record' on page one to edit it on page three. I edit the record on page three and attach a different file to it. Then I submit it and view it on page one again. The record I have just edited is correct with all updates made to it visable and a working file attachment. The problem is that the original record I chose to edit is also there with all the changes made to it except the new file attachment. I don't want the original record displayed, just the new one. This is a result from the second process on page three (When process two is conditioned to never, the record is edited/updated and returned by itself, exactly how I want it but without the new file attachment).<br><br>
MY QUESTION<br><br>
How can I present all 'error records' without displaying duplicates. Is there a way to transform the following idea to SQL? <br>In my report, when two Error Records # 64 come up, compare each error record's ID and display the one with the larger value. . . . or
<br> SELECT MAX(ID) from table DBA_PSPR<br>
WHEN ? ? ? ?<br>
or some kind of function?<br><br>
Any suggestions would be appreciated. Thanks. Leo

Warren, Thanks for taking a look at this.<br>
After creating the record on page two, this is displayed on the report on page one.<br>
IDNu Error_Number Prdct File<br>
0999 599999999999 ABB 079<br>
1000 640000000000 ABC 121<br>
1001 640000000001 ABD 156<br>
After editing the record 640000000000 on page three, this is what is displayed on page one.<br>
IDNu Error_Number Prdct File<br>
0999 599999999999 ABB 079<br>
1000 640000000000 ABC 121<br>
1002 640000000000 ABC 122<br>
1001 640000000001 ABD 156<br>
THE IDNu COLUMN IS HIDDEN THOUGH and report is sorted by Error_Number<br><br>
I would like to see (with IDNu hidden)<br>
IDNu Error_Number Prdct File<br>
0999 599999999999 ABB 079<br>
1002 640000000000 ABC 122<br>
1001 640000000001 ABD 156<br>
because it is the most recent/accurate record for that error number.<br><br>

Similar Messages

  • Simplified: Can't stop duplicating records

    Hi, I have two records in a table holding the same information. Only things different are their ID's. How do I only display the record with the higher/greater/larger ID value in a report (HTML DB v1.6). Thank you.

    Why aren't you satisfied with Vikas' answer in your other posting here?
    Comparing records to return the greater ID value.

  • Can't stop Captivate recording on MacBook Air

    I just installed Captivate on my new Macbook Air.  When I attempt to record a Software Simulation, I get the red box and can start the recording, but when I try to stop the recording it doesn't ever stop.  I've tried Cmd+Enter (which is currently set as the command to stop a recording in my Preferences).  I've also tried Fn+Cmd+Enter.  I tried changing the preferred key to something else, like Shift+Y, and that didn't work either.  It seems like no key combination works.  I also tried clicking on the Captivate icon on the Dock, and no luck.
    Please help!

    Hello,
    Welcome to Adobe Forums.
    Which MAC version are you using (Click on Apple button -> About this MAC)
    Adobe Captivate 6.0 is still in not certified and tested for MAC 10.8 (Mountain Lion)
    Thanks,
    Vikram

  • Can't stop "screen record" from menu bar.  Bug?

    When you begin a "screen record" in Quicktime X, there is supposed to be "stop recording" option next to the Help menu in the menu bar.. However, mine does not... The only way for me to stop recording is to use the key command...
    Anyone else experience or resolve this bug?

    I know it's supposed to be there, but what I'm saying is it is NOT there.. I've already seen the show me. That's why I'm asking if anyone else has seen this bug..

  • Cannot stop video recording

    The stop button for videoing doesn't work! I can't stop any recording.
    Any ideas?

    Close the app.  Restart the device.  Open the app again and test the issue.

  • When I record an audio track, there is a waveform. When I stop recording, the waveform disappears and becomes a straight line. It also disappears from the track edit window. But the sound is there. How can I stop the waveform from disappearing?

    When I record an audio track using Logic Pro X, there is a visible waveform which appears as I record. When I stop recording, the waveform disappears and becomes a straight line. It also disappears from the track edit window. But the sound is still there. How can I stop the waveform from disappearing? And can I do something to view it after it has disappeared? Anyone know the anser?

    In Logic:
    Preferences/Audio Set Recording Delay to 0 <zero>
    This should always be set to zero unless a specific set of circumstances exist and you're audio drivers do not report position correctly.
    On occasion, usually when importing a Logic 9 project, Logic-X randomly changes this to a negative/positive number.  It's actually a bug in Logic, as it should always display the waveform.

  • My quicktime player has stopped audio recording. Any suggestions what I can do?

    my quicktime player has stopped audio recording. Any suggestions what I can do?

    Have you tried restarting or resetting your iPhone?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after the iPhone shuts down, then press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds). Ignore the "Slide to power off"

  • How can i stop i tunes duplicating all my songs, sometimes i only have to turn it on for it to have done it??

    How can i stop itunes duplicating most or all of my songs, i dont seem to do anything and it duplicated something again!!

    With your itunes window open, click the iTunes menu at the top of your screen, beside the apple.  Click Quit iTunes at the bottom of the menu to ensure it's actually quit.
    Hold option (same as alt) on your keyboard.  Do not let it go.  Click your itunes icon on your dock, while continuing to hold option.  After a very short moment, you should see the library window with the described items show up...
    You can then create a new library on your external drive to contain  your movies.  Keep in mind, though, you'll have to repeat the above to select which library you want to use.

  • MSI Afterburner can't stop recording

    Hi, first sorry for my English, I speak French.
    I try to video capture with MSI Afterburner 4.1.0, I set the hotkey @ CTRL+F11.
    When I hit the hot-key, it's start recording, I have an camera icon in MSI Afterburner Hardware Monitor, but if I hit CTRL+F11 again, it doesn't stop the recording. Even if i press long time CTRL+F11 nothing happen, I changed hot-key with other one, it's start but never stop, in Windows 7 Desktop, does the video capture work only in game ?
    Any one have an idea
    I set picture capture @ CTRL+F12, then changed Screen capture to ALT+F12, when I hit the hot-key in Windows desktop, it's writed screenshot captured in MSI Afterburner Hardware Monitor, but nothing in the screenshot folder... I tested Screenshot capture in game and it works, i find JPG files in folder.

    For MSI Afterburner support here is a dedicated forum for it:
    http://forums.guru3d.com/forumdisplay.php?f=55
    Well since there is no MSI product in here...

  • How do I stop duplicating contacts when I sync with gmail

    How do I stop duplicating contacts when I sync my IPod Touch with Gmail?

    I don't know if this helps much, but Address Book was basically the same application in a previous version of the Mac OS. Folks still seem to use the terms interchangably though. Similarly, Calendar used to be "iCal."
    I believe syncing contacts with Google or iCloud is an either/or proposition - you can't do both. When you sync with either, a copy is saved to your Mac for faster access (like a web browser's cache). I believe there's still an option to save contacts exclusively to your Mac (HD), but I don't think it's either preferred or occurs by default if you have an account such as Gmail/google or iCloud already set up.
    I've never played with preferences in Contacts (Address Book), but I do have both google and iCloud accounts associated with my Mac. Under System Preferences:Mail, Contacts & Calendars, you can specify what accounts do on your Mac. If you have multiple accounts set up, a list will appear on the left side. As you select each one, a list of check boxes appear to the right for each service you want to associate with that account. For example, I have an iCloud account for mail, calendars, contacts, and Safari (among others). I have a Gmail account for mail, although it gives me the option of using this account for calendars, etc. For Gmail, the only item I have checked is mail. It's never asked me if I wanted to sync my addresses with Google.
    I hope this helps... at least a little. If nothing else, I hope I've solved the "Address Book" mystery ;-)

  • How to delete the duplicated records, not just surpress the records?

    I am new to CR. Right now I am doing a project which needs CR get query from Oracle. I got the query from Oracle. There are records with duplicated fields. For example (the following only show part of fields):
    ID    body_code  
    1            10            
    2             10            
    3             15            
    4              15           
    5              15           
    6              16           
    I need to only select records (not surpress, because I will do some caluculate later) like following:
    ID         body_code        
    1             10         
    2              15
    3               16   
    I tried to creat selection fomula in fomula workshop, shown as follows:
    onlastrecord;
    <>next
    but CR said next can be evaluated. I think it must have something to do with the print-time. So what show I do to delete the duplicated records.Thank you very much.

    Ting,
    Try this:
    Insert a group on body_code.  Then create a running total called Distinct Count.  Field to summarize -> ID, Evaluate on change of group Group # 1 Body Code, and Never Reset.
    Then insert a chart in the report header:
    In the advanced layout, select body_code on change of and select Distinct Count running total in the Show values.
    I hope I understood what you're looking to accomplish.
    Z

  • HT5361 Why is that when I am composing a new message do I end up with multiple versions of my message I am composing up in my Google Trash mailbox?  How can I stop this from happening?

    Why is that when I am composing a new message do I end up with multiple versions of my message I am composing up in my Google Trash mailbox?  How can I stop this from happening?

    It was very hard to see what the box says because the message displays for less than one second. However, I was able to record it with my iphone and pause it until I got a shot of the message. The box says the following:
    "Do you want the application “java” to accept incoming network connections?
    Clicking deny may limit the application’s behavior. This setting can be changed in the Firewall pane of Security preferences."
    I did make some changes. I will see if it works.
    Thank you!!!

  • Can I stop batch reading, if any error comes in a batch, in File Adapter

    Hi All,
    I am reading files in batches of 100 lines as there are 1000 records. Can I stop further reading of records from a file, If any error comes in any batch.
    e.g. If my file adatpter is readinf 101 lines, if any error comes in this line, then it should stop reading line 102 and so on.
    Regards

    Hi Vikas,
    I am not sure what you mean exaclty by stop reading - would you be fine if the other lines are rejected till end of file, if an error is encountered?
    Then you can achieve that by ensuring that your schema does not have nxsd:uniqueMessageSeparator="${eol}" in the schema element.
    http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28994/adptr_file.htm#CACEGBFD
    I am not entirely sure if that would be a good design decision though.
    Regards,
    Shanmu.
    Edited by: sthiagar on Feb 5, 2010 9:23 PM

  • Stop a recording and start a new one

    Hi, i can record audio from mycrophone when i press a play button and stop it when i press a stop button. But when i press the play button again, it doesn't record.
    Here is some code:
    Play button:
    private void btnRecActionPerformed(java.awt.event.ActionEvent evt) {                                      
            Processor captureProcessor = null;
            if (paused == false ) {
                lblSegundos.setText("segundos...");
                try {
                    processor.configurarCapturaAudio();
                    processor.habilitarSonido();
                    processor.guardarCapturaAudio();
                    capturarAudioEnMemoria();
                } catch (IOException ex) {
                    Logger.getLogger(InformDetail.class.getName()).log(Level.SEVERE, null, ex);
                captureProcessor = processor.obtenerProcessor();
                AudioThread hilo = new AudioThread(lblCronometro, slidAudio, captureProcessor);
                hilo.start();
                btnStart.setEnabled(true);
                btnRewind.setEnabled(false);
                btnStop.setEnabled(true);
                btnForward.setEnabled(false);
            } else if (paused == true ) {
                try {
                    processor.resumeCapture();
                    audioThread.resumeThread();
                    pausado = false;
                } catch (IOException ex) {
                    Logger.getLogger(InformDetail.class.getName()).log(Level.SEVERE, null, ex);
        }  Stop button:
    private void btnStopActionPerformed(java.awt.event.ActionEvent evt) {                                       
            detenerGrabacionMemoria  = true;
            insertarAudioTabla();
            audioThread = new AudioThread();
            audioThread.terminateNormaly();
            try {
                processor.terminarGrabacionAudio();
            } catch (IOException ex) {
                Logger.getLogger(InformDetail.class.getName()).log(Level.SEVERE, null, ex);
            lblCronometro.setText("terminado");                
        }                 

    Ok, my aplication records audio from a microphone. In my gui I have these buttons: stopButton,recordButton,pauseButton,forwardButton,rewindButton, to control the recording.When I press recordButton, the recording starts,at the same time the recording is being saved in a directory.In this button i call the methods:configureRecordingAudio() and saveRecordingAudio() from the classs:AudioProcessor,also calls a class:AudioThread to set a timer in a label of my gui. Then i stop a pauseButton and the recording pauses,here i call the methods: resumeCapture() from the class AudioProcessor and resumeThread() from the class AudioThread,then i press the recordButton and the recording continues. To end the recording i press stopButton,and stop the recording.
    So it 's supposed that when i press the recorButton it iniciate a new recording, but doesn't do it.
    Record:
    private void btnRecActionPerformed(java.awt.event.ActionEvent evt) {                                      
            Processor captureProcessor = null;
            captureProcessor = processor.obtenerProcessor();
            if (paused == false  ) {
                lblSeconds.setText("seconds...");
                try {
                    processor.configureRecordingAudio();
                    processor.enableMonitorSound();
                    processor.saveRecordingAudio();           
                } catch (IOException ex) {
                    Logger.getLogger(InformDetail.class.getName()).log(Level.SEVERE, null, ex);
                captureProcessor = processor.getProcessor();
                AudioThread thread = new AudioThread(lblCronometro, slidAudio, captureProcessor);
               thread.start();
                btnStart.setEnabled(true);
                btnRewind.setEnabled(false);
                btnStop.setEnabled(true);
                btnForward.setEnabled(false);
            } else if (paused == true) {
                try {
                    processor.resumeCapture();
                    audioThread.resumeThread();
                    pausado = false;
                } catch (IOException ex) {
                    Logger.getLogger(InformDetail.class.getName()).log(Level.SEVERE, null, ex);
    StopRecord:
    private void btnStopActionPerformed(java.awt.event.ActionEvent evt) {                                       
            audioThread = new AudioThread();
            audioThread.terminateNormaly();
            try {
                processor.EndRecordingAudio();
            } catch (IOException ex) {
                Logger.getLogger(InformDetail.class.getName()).log(Level.SEVERE, null, ex);
            lblCronometro.setText("finished");                
        }

  • Duplicated records

    Dear friends,
    One question for you from a PL/SQL beginner:
    I have to individuate duplicated records (and set them as errated):
    With the below code I retrieve only the plus records, but I need ALL the duplicated records (example, if I have 2 equal records, I need the 2 records, not only one)
    SELECT
    ID_AMBS
    , ASL
    , CD_PRESIDIO
    , GGMM_CONTATTO
    , NR_RICETTA
    , CD_CONT_PRESCR
    , NR_PROG_INT
    FROM NOC_AMBS_WORK
    WHERE ID_AMBS IN
        SELECT
        min(ID_AMBS)
        FROM
        NOC_AMBS_WORK
        GROUP BY
        ASL, CD_PRESIDIO, GGMM_CONTATTO, NR_RICETTA, CD_CONT_PRESCR, NR_PROG_INT
        HAVING
        COUNT (*) > 1
    )With the below code I retrieve all the records of the table (not the duplicated)
           SELECT *
            FROM noc_ambs_work a,
                 noc_ambs_work b
           WHERE NVL(a.asl,'x') = NVL(b.asl,'x')
             AND NVL(a.cd_presidio,'x') = NVL(b.cd_presidio,'x')
             AND NVL(a.ggmm_contatto,'x') = NVL(b.ggmm_contatto,'x')
             AND NVL(a.nr_ricetta,'x') = NVL(b.nr_ricetta,'x')
             AND NVL(a.cd_cont_prescr,'x') = NVL(b.cd_cont_prescr,'x')
             AND NVL(a.nr_prog_int,'x') = NVL(b.nr_prog_int,'x')Can you help me?
    Tks
    leo

    Since you have not mentioned, which columns are getting duplicated, whats table structure, which column is pk, I think you can take help from below sample
    SQL> ed
    Wrote file afiedt.buf
      1  with c as
      2  (
      3  select 1 id, 'A' n from dual union all
      4  select 1,'A' from dual union all
      5  select 1,'A' from dual union all
      6  select 2,'e' from dual union all
      7  select 3,'r' from dual)
      8  select *
      9  from c
    10  where id =(select t1.id
    11         from c t1
    12         group by id
    13*        having count(*) >1)
    SQL> /
            ID N
             1 A
             1 A
             1 A
    SQL>

Maybe you are looking for

  • WHAT A LOW QUALITY KEYBOARD!!​! Broken after using for ONE day, what should I do????

    Hi guys~ I've bought my first thinkpad x230 from lenovo offical online store and recived it on yesterday. I was very exciting when I receive this extreamely light and pretty notebook. -However, it not last long... After typing a series of numbers, th

  • Unusual interlacing problem

    Greetings, I recently shot a short 16mm film and got it telecined to DV NTSC with timecode/keycode window-burn. I imported the flex file I got from the lab into a Cinema Tools 4 database, then exported a batch capture list, and captured the footage i

  • Firefox is running slower on my pc then the previous version 3.6

    i cant play farmville on facebook and it takes forever to get online when i click on my browser firefox,pplease help i like firefox and it might be too much for my laptop if it is i need help restoring to 3.6

  • How can I report an error in the French interface of FCP X ?

    Hello All, I'm building an EXCEL shortcuts sheet for FCP X 10.0.7 Fr and discovered a few errors in the translation. How can I report them to Apple Localization Engineering, pls? Thanks.

  • Lightroom won't download from Adobe

    for two days I tried to download Lightroom as a trial.  Still won't download when I hit the download button.  Other apps from the trials download OK.  I finally went to the Upgrade Lightroom on the right side and it worked just fine.