I need to find mismatches between tablesFind the salary difference between two monthsComparing values between...

What is the Buddhist view in Socratic questioning?

How bad is a Computer Science course that doesn't teach Design Patterns?

Is there any way to play D&D without a DM?

Is the tritone (A4 / d5) still banned in Roman Catholic music?

Can a Way of Shadow Monk use Shadow Step to teleport to a dark ceiling and then body slam another creature?

I am a loser when it comes to jobs, what possibilities do I have?

What is the reward?

Disk space full during insert, what happens?

SQL Server Service does not start automatically after system restart

Is Screenshot Time-tracking Common?

Is there any danger of my neighbor having my wife's signature?

How do I add a strong "onion flavor" to the biryani (in restaurant style)?

Do the speed limit reductions due to pollution also apply to electric cars in France?

What happens if both players misunderstand the game state until it's too late?

How can guns be countered by melee combat without raw-ability or exceptional explanations?

Multiple null checks in Java 8

What is an explicit bijection in combinatorics?

What does @ mean in a hostname in DNS configuration?

How can I give a Ranger advantage on a check due to Favored Enemy without spoiling the story for the player?

What sort of grammatical construct is ‘Quod per sortem sternit fortem’?

Did ancient Germans take pride in leaving the land untouched?

Why does this quiz question say that protons and electrons do not combine to form neutrons?

How to deal with an underperforming subordinate?

Why write a book when there's a movie in my head?



I need to find mismatches between tables


Find the salary difference between two monthsComparing values between two tablesMoving a date between tables is causing error ORA-01841How do I find gaps between ranges of numbers?Connecting 4 tables - finding some differences between themNeed SQL outer join help with 3 tablesOracle Table - game like script - need solution to find out the values from current columnFind jobs and dependencies run between two timestampsHow to find which tables were deleted (in Oracle)Finding the odd row between two tables in Oracle













0















So my problem is basically that I have an accounting table that has transaction references, and supporting document numbers. Some of the document numbers have become mismatched from their actual transaction number. The worst part is that the bad document numbers are actually valid, but reference a bad transaction. So here's the important part:



Every transaction has two parts.
Reference#, Type (Type A and Type B), and a document number.



I need to find all transactions where either (REF#, Type A)'s DOC# doesn't equal (REF#, Type B)'s DOC#, or where there is no matching Type A or Type B transaction at all.









share







New contributor




Matthew is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    So my problem is basically that I have an accounting table that has transaction references, and supporting document numbers. Some of the document numbers have become mismatched from their actual transaction number. The worst part is that the bad document numbers are actually valid, but reference a bad transaction. So here's the important part:



    Every transaction has two parts.
    Reference#, Type (Type A and Type B), and a document number.



    I need to find all transactions where either (REF#, Type A)'s DOC# doesn't equal (REF#, Type B)'s DOC#, or where there is no matching Type A or Type B transaction at all.









    share







    New contributor




    Matthew is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      So my problem is basically that I have an accounting table that has transaction references, and supporting document numbers. Some of the document numbers have become mismatched from their actual transaction number. The worst part is that the bad document numbers are actually valid, but reference a bad transaction. So here's the important part:



      Every transaction has two parts.
      Reference#, Type (Type A and Type B), and a document number.



      I need to find all transactions where either (REF#, Type A)'s DOC# doesn't equal (REF#, Type B)'s DOC#, or where there is no matching Type A or Type B transaction at all.









      share







      New contributor




      Matthew is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      So my problem is basically that I have an accounting table that has transaction references, and supporting document numbers. Some of the document numbers have become mismatched from their actual transaction number. The worst part is that the bad document numbers are actually valid, but reference a bad transaction. So here's the important part:



      Every transaction has two parts.
      Reference#, Type (Type A and Type B), and a document number.



      I need to find all transactions where either (REF#, Type A)'s DOC# doesn't equal (REF#, Type B)'s DOC#, or where there is no matching Type A or Type B transaction at all.







      oracle





      share







      New contributor




      Matthew is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      Matthew is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      Matthew is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 9 mins ago









      MatthewMatthew

      1




      1




      New contributor




      Matthew is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Matthew is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Matthew is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "182"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Matthew is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f230525%2fi-need-to-find-mismatches-between-tables%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Matthew is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Matthew is a new contributor. Be nice, and check out our Code of Conduct.













          Matthew is a new contributor. Be nice, and check out our Code of Conduct.












          Matthew is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Database Administrators Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f230525%2fi-need-to-find-mismatches-between-tables%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Szabolcs (Ungheria) Altri progetti | Menu di navigazione48°10′14.56″N 21°29′33.14″E /...

          Discografia di Klaus Schulze Indice Album in studio | Album dal vivo | Singoli | Antologie | Colonne...

          How to make inet_server_addr() return localhost in spite of ::1/128RETURN NEXT in Postgres FunctionConnect to...