compare the data and the output data that do not exist

Hello
I've written a procedure to insert data into a table 3 where I compare the data between two tables, if it matches it insert in the table test_a Joanie. If the exists not or other tables i.e. test_code and test_type it should output this data, where there is no. my code works for a single table, which is test_code. It's not DBMS display a line that is not in the table test_type. could just tell my why? Assume that if test_code a line which is only not in test_type it should out saying this line of incompatibilities with test_type and vice versa.

-Here's my code

Test of CREATE OR REPLACE PROCEDURE. GET_data
IS

BEGIN
DELETE test.test_a;
FOR c IN (select a.cCODE,
a.type,
a.Indicator,
RTrim (xmlagg (xmlelement (e, a.codenum |))) (') a.codenum order) .extract ('/ / text()'), ',') codeNUMber.
b.CCODE cc,
b.type tp,
b.Indicator ind
test.test_code a, test.test_type b
where a.ccode = b.ccode (+)
AND a.type = b.type (+)
AND a.indicator = b.indicator (+)
Group of a.ccode, a.type, a.indicator, b.CCODE, b.type, b.indicator
order of a.ccode)
LOOP
BEGIN
IF (c.cCODE = C.c.c.
AND C.type = C.tp
AND C.indicator = C.ind
AND C.SYS_IND = C.SYSIND) THEN
insert into test.test_a (CCODE, type indicator)
values (C.cCODE, C.type, C.indicator);
ON THE OTHER
dbms_output.put_line (' rules for cCODE issue: ' |) C.cCODE);
dbms_output.put_line ('type: ' |) C.type);
dbms_output.put_line (' indicator: ' |) C.Indicator);
dbms_output.put_line (' problem of rules for CC: ' |) C.C.C.) ;
dbms_output.put_line ('tp: ' |) C.TP);
dbms_output.put_line ('ind: ' |) C.IND);
END IF;
EXCEPTION
WHILE OTHERS THEN
dbms_output.put_line (' rules for cCODE issue: ' |) C.cCODE);
dbms_output.put_line ('type: ' |) C.type);
dbms_output.put_line (' indicator: ' |) C.Indicator);
dbms_output.put_line (' problem of rules for CC: ' |) C.C.C.) ;
dbms_output.put_line ('tp: ' |) C.TP);
dbms_output.put_line ('ind: ' |) C.IND);
END;
end loop;
commit;
END;
/


Thank you

You must use a FULL OUTER JOIN instead an OUTER JOIN for this.

Just curious, why do you need to use dbms_output instead to execute the SQL query with additional conditions (if part of your procedure)?. You can use two times, one to insert those that match and one for the selection of others who do not match.

Kind regards.

Tags: Database

Similar Questions

  • Problems with the e-mails that do not exist

    Hello
    I had a problem when sending many emails. The database of my company that I use is old and often emails that are there do not exist, and when I send the error msg like 300 or more emails any user who does not exist interrupts the transmission. It is therefore worrying.

    How to make Thunderbird to ignore these messages and send mails on another account?

    Thunderbird is not a marketing engine, it is designed for use of personal mail.

    Sending mail in volumes you mention is a violation of the terms of use of almost every ISP in the world and will probably see your black mail server listed.

    As much the corking, Thunderbird wants to make sure that you understand that your mailing list is rubbish. Otherwise, we get complaints that the mail has not been delivered.

    Anyway, to take Thunderbird in offline mode by clicking on the icon in the lower left corner, your mail and then take it online. by clicking on the same icon again.

  • The iPhone Mail uses the smtp server that does not exist

    My iphone SE mail constantly uses an smtp server that is not listed anywhere, but has been used there are 2 iphones.

    I deleted the account and smtp servers several times.

    There is only one main smtp server... not supplements

    I try to send an email whenever I get: user name and password smtp:mail06xxxxxxxx@authsmtp. Vodafone.nl is incorrect.

    vodafone is not my provider and I use the smtp server of vodafone.

    Anyone has an idea on how to address this problem?

    Have you tried to manually create the email account using the selection 'other '?

    What your email account provider?

  • Windows vista does not open and goes to the other user that does not exist

    I try to open to all modes goes directly to any other user who has never been assigned a password. Now Icant open workstation to all the .whassup

    Hello

    1. don't you make changes on the computer until the problem started?
    2. how many accounts do you have on the computer?
    3 have you tried to start the computer in Safe Mode?

    If you are unable to start the computer in safe mode, and then try to run a system restore from the System Recovery Options menu.

    See these articles for help:
    http://Windows.Microsoft.com/en-us/Windows-Vista/what-are-the-system-recovery-options-in-Windows-Vista
    http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-system-restore
    http://Windows.Microsoft.com/en-us/Windows-Vista/system-restore-frequently-asked-questions

    Kind regards
    Afzal Taher
    Microsoft technical support engineer

  • With data that don't exist - Android null pointer exception

    I'm having a problem with my program when retrieving data that do not exist, where the program hangs and gives a null pointer exception in logcat. I use a path as the primary key. I have no insertion of data and data recovery problem that exists. The program does not register on the db if I restart android or when the program crashes. When I try to recover data with the key file path that I already had, the program crashes. I really have no idea, as I catch the exception of the database.
    My Code:
        private void insertData(String keyData)
          throws DatabaseException {
          try {
                File fi = new File(keyData);
                try {
                  AudioFile f = AudioFileIO.read(fi);
                  Tag tag = f.getTag();
                  Song song = new Song(keyData, tag.getFirst(FieldKey.TITLE), 
                           tag.getFirst(FieldKey.ARTIST), tag.getFirst(FieldKey.ALBUM));
                  sa.songByKey.put(song);
                } catch (CannotReadException e) {
                    AlertDialog alertDialog = new AlertDialog.Builder(MusicTagExample.this).create();
                    alertDialog.setTitle("Error!");
                    alertDialog.setMessage(e.toString());
                    alertDialog.show();
                }
                catch (TagException e) { }
                catch (ReadOnlyFileException e) { }
                catch (InvalidAudioFrameException e) { }
              }  catch(IOException e) { 
                   AlertDialog alertDialog = new AlertDialog.Builder(MusicTagExample.this).create();
                   alertDialog.setTitle("Error!");
                   alertDialog.setMessage(e.toString());
                   alertDialog.show();
              }
        }
    
        private void getData(String key) 
          throws DatabaseException {
          try {
                   Song song = sa.songByKey.get(key);
                   new AlertDialog.Builder(MusicTagExample.this).
                   setTitle("Put Data").setMessage("You put the song: " + song.getTitle()).
                   setPositiveButton("Confirm", new DialogInterface.OnClickListener() {
                     public void onClick(DialogInterface dialog, int whichButton) {
                     }
                   }).show();
    
              } catch (DatabaseException e) {
                  new AlertDialog.Builder(MusicTagExample.this).
                  setTitle("Put Data").setMessage(e.toString()).
                  setPositiveButton("Quit", new DialogInterface.OnClickListener() {
                    public void onClick(DialogInterface dialog, int whichButton) {
                    }
                  }).show();
              }
        }
    Logcat Info:
    E/AndroidRuntime(  331): FATAL EXCEPTION: main
    E/AndroidRuntime(  331): java.lang.NullPointerException
    E/AndroidRuntime(  331):      at org.MusicTag.MusicTagExample.getData(MusicTagExample.java:95)
    E/AndroidRuntime(  331):      at org.MusicTag.MusicTagExample.access$100(MusicTagExample.java:27)
    E/AndroidRuntime(  331):      at org.MusicTag.MusicTagExample$2.onClick(MusicTagExample.java:59)
    E/AndroidRuntime(  331):      at android.view.View.performClick(View.java:2485)
    E/AndroidRuntime(  331):      at android.view.View$PerformClick.run(View.java:9080)
    E/AndroidRuntime(  331):      at android.os.Handler.handleCallback(Handler.java:587)
    E/AndroidRuntime(  331):      at android.os.Handler.dispatchMessage(Handler.java:92)
    E/AndroidRuntime(  331):      at android.os.Looper.loop(Looper.java:123)
    E/AndroidRuntime(  331):      at android.app.ActivityThread.main(ActivityThread.java:3647)
    E/AndroidRuntime(  331):      at java.lang.reflect.Method.invokeNative(Native Method)
    E/AndroidRuntime(  331):      at java.lang.reflect.Method.invoke(Method.java:507)
    E/AndroidRuntime(  331):      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
    Source code:
    https://github.com/ambient-grade/MusicTagExample

    The NullPointerException occurs on line 95 of MusicTagExample.java. It is of course your code. One of the objects you are referring to the line is null. The first step is for determine you which object is null.

    -mark

  • Here is a list of the driver updates that do not install for one reason or another: Intel Desktop/Workstation/Server Express Chipset SATAAHCI controller your driver is out of date.

    Here is a list of the driver updates that do not install for one reason or another:

    Intel Desktop/Workstation/Server Express Chipset SATAAHCI controller

    Your driver is out of date.

    The installed driver date 30/05/2012

    New driver Date 18/09/2012

    After the next driver update > the following message appears:

    This driver downloaded successfully.

    You want to install it now?

    Yes. Then was the following result:

    Please update your Windows update Agent version.

    You can download the latest version by clicking here.

    If the Microsoft FixIt solution above does not solve your problem.

    Check on the Intel site.

    For example: http://www.intel.com/p/en_US/support/detect

  • Add text from the command line to the output so that I can know how a command has been run when it generated the output

    This is a question and a suggestion...

    I would like to be able to precede or add if it works, the command line in the output file that creates the order.

    Example:

    I run dcdiag with switches, etc. and create an output file of results that gets saved or sent to a person or just put it in a folder. Of course, it could be that someone else ran the command and then sent the file. Anyway the problem is the same - what was the exact command line that has been executed to achieve these results?

    Question:

    Is there a known way to do from the command line that I can apply to any command?

    Suggestion:

    If this isn't the case, then I would suggest MS to include this function in all the BACK and PowerShell commands able to produce text output.

    If all goes well they monitor this forum and find it's a great idea and send me a check (pinky in my cheek) a meeellion of dollars. Then I and I alone will rule the world.

    Here you go:

    d:\>format i: / FS: NTFS > format.txt
    d:\>echo i format: / FS: NTFS > format.txt

  • How to disable the AppStore offers updated app that does not exist on the ipod touch 5g ios 9 and Reset counter app

    Regularly I receive notifications of updated Brainiacs Sudoku which I had deleted Ipod Touch 5 g a long time ago.  I can't disable the app update counter until I have download the update.  So, how to disable the AppStore offers updated app that does not exist on the ipod touch 5g ios 9 and Reset counter of the application once and for all?

    Try to hide this purchase

    Hide and show purchases iTunes or iBooks on your Mac or PC - Apple Support

  • The Apple showing in the page settings of ICloud ID does not go and watch my old email address that does not exist as an Apple ID.

    ID showing in the page settings of ICloud Apple won't and watch my old email address that does not exist in the Apple continues to him I identification code is required to sign in this old apple ID, but when I try to reset the password of the site Web of Apple tells me that this 'old' email address is not a piece of identification If that makes sense. I tried to disconnect from ICloud, but always keep asking the password sign to find my Ipad.

    I know my good Apple ID and password and have checked the details on Apple's site that shows the Ipad on the list of devices.

    The Ipad will connect has WiFi and I took it at John Lewis today where I bought it and they think that the problem is being caused by this problem of ID.

    Another that take it to the Apple store, anyone have any suggestions please?

    Welcome to the Apple community.

    If you are unable to remember your password, security issues, do not have access to your address of rescue or are unable to reset your password for any reason, your only option is to contact the Support of Apple ID, to speak to an operator you should explain that your problem is related to your Apple ID This way you can be attributed to the assistance, even if you do not have an AppleCare plan.

    You will need to be patient with the process and to be ready to prove without doubt that the account belongs to you. Do not expect access to be restored immediately and if you are not the owner of the Apple ID saved to the device the account will not be reset.

  • I installed a new router (Netgear N300) wireless and my laptop is the only computer that does not connect to the internet.

    Connected to the new router, but locally only.

    Currently, I installed a new router (Netgear N300) wireless and my laptop is the only computer that does not connect to the internet. The small icon to the left of my screen says only: ACCESS: LOCAL ONLY.
    BASICALLY,.

    I have Windows Vista Home Premium, notebook Compaq (Presario CQ60 to be exact)

    I can connect if I use a cable, but its disadvantages.

    I can connect wirelessly with my PC and Ipad. and Internet access.

    I TRIED:
    Various patches microsoft such as resetting TCP, safe mode with network, reset the router. »

    Thank you in advance and we hope you can answer this soon!

    I use an Atheros AR5007 802. 11 b / g WiFi Adapter(Compaq laptop) for the moment so this is useful. Thanks again!
    Someone suggested that I update my wireless driver. I am open to this idea, if anyone can find a safe and legal site with the download.

    Hi Bryyaan11,

    You can check out the link to HP support and try to download the drivers for your wireless card updated:

    Support HP & drivers

    For more information, you can also consult the following article:

    Updated a hardware driver that is not working properly

    You can also check the following items and try the steps:

    Windows wireless and wired network connection problems

    Solve problems, find wireless networks

    Hope this information is useful.

  • Download rows that do not exist in the following tables.

    Hello

    I need to implement certain points of view in order to compare the systems.
    This view will compare the tables with the same structure and I need to extract lines that do not exist in one of the sides.
    I need to implement some points of view to not compare only two tables, others to compare the 3 tables and compare the 5 tables and another to compare the 10 tables!
    Each table can contains a few lines to a maximum of 10 million rows (it was the highest number that I found for this tables).

    My test scenario:
    CREATE TABLE TEST_TABLE
    (COL1 NUMBER ,
    COL2 CHAR(25));
    
    CREATE TABLE TEST_TABLE2
    (COL1 NUMBER ,
    COL2 CHAR(25));
    
    CREATE TABLE TEST_TABLE3
    (COL1 NUMBER ,
    COL2 CHAR(25));
    
    
    insert into TEST_TABLE (COL1,COL2) values (1,'2');
    insert into TEST_TABLE (COL1,COL2) values (11,'t1');
    insert into TEST_TABLE2 (COL1,COL2)  values (1,'2');
    insert into TEST_TABLE2 (COL1,COL2) values (22,'t2');
    insert into TEST_TABLE3 (COL1,COL2) values (1,'2');
    insert into TEST_TABLE3 (COL1,COL2) values (33,'t3');
    To find the differences between two tables, I've implemented the following:
    select * from
    (
    (select * from TEST_TABLE
    minus
    select * from TEST_TABLE2
    )
    union all
    (select * from TEST_TABLE2
    minus
    select * from TEST_TABLE
    )
    )
    
    Result:
    COL1 COL2
    11     t1                       
    22     t2                       
    For the comparison of 3 tables, the result should be:
    Result:
    COL1 COL2
    11     t1                       
    22     t2                       
    33     t3                       
    For others, I can implement the same way, but for sure, this isn't the prettiest and best performing solution!

    How can I get the result I'm going with the more performance?

    Thank you
    Ricardo Tomas

    You did not say if you allow duplicates in your tables, so I assumed that you do not have.

    If a single table may have multiple occurrences of a given col1, col2 combination you will need to separate the col1, col2 list each table before making the union of all.

    ME_XE?  select
      2     col1, col2
      3  from
      4  (
      5     select col1, col2       from test_table
      6             union all
      7     select col1, col2       from test_table2
      8             union all
      9     select col1, col2       from test_table3
     10  )
     11  group by
     12     col1, col2
     13  having count(*) = 1;
    
                  COL1 COL2
    ------------------ --------------------------------------
                    33 t3
                    22 t2
                    11 t1
    
    3 rows selected.
    
    Elapsed: 00:00:00.01
    ME_XE?
    
  • After the upgrade from my bookmarks list shows the entries less than before; the indications you have search a Profiles folder that does not exist.

    After Update Firefox on all November 9, I lost the list of bookmarks that I had before and it could access it from my homepage. Now it does not appear there. When I followed the instructions on your mozillazine.org help page, it says to find a profile file that does not exist with this version.

    One possible cause is a problem with the places.sqlite file that stores the bookmarks and history.

  • Tried to open the Excel spreadsheet in Sharepoint, but get the message "cannot open the window because it contains the following features that are not supported by Excel in the browser: sheet Protection.

    I tried to open this Excel spreadsheet in Sharepoint and received the following message.

    "Cannot open the window because it contains the following features that are not supported by Excel in the browser:

    -Protection plate

    You want to try to open the message in Excel? »

    Learn more about the unsupported features.

    YES                       NO

    When I type 'Yes', I had then the second message.

    "To open this workbook, your computer must have a version of Microsoft Excel is installed and your Web browser must support opening files directly from Excel in the browser".

    What should I do?

    Original title: sharepoint excel files

    Tommy:

    I have 64 bit explore.  So I guess that the thought is that the error message was generated by the incoming file, as I have other files Excel I can access in Sharepoint with no problem?  I sent the file Outlook e-mail and was able to open it with no problem at all.  .

    Thanks for the information,

    Jim

  • I bought lightroom 6 at amazon, but it will not be installed. All I said "Installer failed to initialize, please download Adobe install advisor to detect the problem", but it does not exist. It gives me no more information than that. I have already

    I bought lightroom 6 at amazon, but it will not be installed. All I said "Installer failed to initialize, please download Adobe install advisor to detect the problem", but it does not exist. It gives me no more information than that. I already had a free annual subscription to cc through my new canon camera, but I installed for my mac already. No phone number to call, adobe contact to say amazon, what do I do?

    start at the top and work your way down to apply applicable patches until your problem is solved.

    If (win) cc: https://helpx.adobe.com/creative-cloud/kb/creative-cloud-desktop-application-failed.html

    If your error is:

    "Setup failed to initialize. File not found. ' or 'could not initialize installation. This could be due to missing files.

    first of all, rename folder OOBE OOBE.old.

    to find the OOBE:

    Win 64 bit OS: Program Files x86\Common Files\Adobe\OOBE

    Win 32 bit OS: Program Files \Common Files\Adobe\OOBE

    Mac os: HD > library > application support of > adobe > caps

    Mac os: USER > library > application support of > adobe > OOB

    If it fails or isn't the exact error you see, uninstall, clean (http://www.adobe.com/support/contact/cscleanertool.html) and reinstall.

    If you use an installation dvd:

    Copy the contents of the drive in a desktop folder and install from this directory.

    If you are using a mac:

    1. try to create a new user account in Mac with administrator privileges.

    2. connect to the new user, navigate to Mac HD > Application > utilities > Adobe Installer folder, locate products such as Adobe Reader, Adobe Flash, Adobe Air and uninstall the

    3. navigate to the user library > Application Support > Adobe and Adobe put in the trash.

    4. navigate to Mac HD > library > Application Support > Adobe and Adobe put in the trash.

    5 restart the installation.

    If everything is applicable above fails, check your Setup logs:

    http://helpx.Adobe.com/Photoshop-elements/KB/troubleshoot-install-using-logs-elements.html

  • What is happening with the DNS requests that cannot not find a matched host (A) RR in the zone are sent to WINS servers, but there is no WINS server installation?

    What is happening with the DNS requests that cannot not find a matched host (A) RR in the zone are sent to WINS servers, but there is no WINS server installation?

    Hello

    Please repost these questions in the Technet Forums

    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer

    See you soon.

Maybe you are looking for

  • Organization of the wrong understanding OSX and presentation files?

    I'm a former developer/project manager who comes to Mac OSX after 15 years with Linux and 10 years of Windows, and I find myself confused in how file names are presented under OSX. The documents seems to provide a list of all the documents independen

  • Why my signal generator point-by-point gives a flat line?

    Hi all I use the screw point-by-point for the first time and is trying to generate a square wave to use. However, when I plug the output of a point-by-point square wave generator, it gives just a flat line (using values default values for the other p

  • Admin-connect you

    There is a button (one of the 'F' keys) that you can press on when you start giving access to the administrator log-in.  My admin account is messed up and I need to remove it.  It is an XP machine.

  • On the subnet with RV042

    Good afternoon friends... I have the RV042 router, I use that one single Connection Internet, I use the intellectual property of the group like this 192.168.95.x, my DHCP implementation using 192.168.95.120 to 192.168.95.240, but at this moment I hav

  • Eloqua marketing calendar?

    Can I get information on the Eloqua Marketing Calendar application?