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
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
New contributor
add a comment |
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
New contributor
add a comment |
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
New contributor
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
oracle
New contributor
New contributor
New contributor
asked 9 mins ago
MatthewMatthew
1
1
New contributor
New contributor
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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.
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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