Oracle Loop through values from one table and join with another table
Know when to turn notes upside-down(eighth notes, sixteen notes, etc.)
Is it true that real estate prices mainly go up?
Bash replace string at multiple places in a file from command line
Schematic conventions for different supply rails
Rejected in 4th interview round citing insufficient years of experience
Why must traveling waves have the same amplitude to form a standing wave?
Russian cases: A few examples, I'm really confused
How to deal with a cynical class?
How do I hide Chekhov's Gun?
Why did it take so long to abandon sail after steamships were demonstrated?
Make a transparent 448*448 image
Is it possible that AIC = BIC?
Using "wallow" verb with object
Why would a flight no longer considered airworthy be redirected like this?
Why is "das Weib" grammatically neuter?
Good allowance savings plan?
How do anti-virus programs start at Windows boot?
How could a scammer know the apps on my phone / iTunes account?
Sword in the Stone story where the sword was held in place by electromagnets
What is a good source for large tables on the properties of water?
Is a lawful good "antagonist" effective?
I need to drive a 7/16" nut but am unsure how to use the socket I bought for my screwdriver
What is IP squat space
Co-worker team leader wants to inject his friend's awful software into our development. What should I say to our common boss?
Oracle Loop through values from one table and join with another table
I have a table (table1) with fields package_id and contract_id.
Data in table 1 is like that 1 package_id can have 1 or more contract_id associated with it.
I have another table (table1) with contract_id and status ('active' or 'dead')
I need to find the package_id which doesn't have any contract_id associated with it which is 'ACTIVE' or in other words I need to find package_id which has all contract_id associated with it in 'DEAD' state.
Please help.
oracle-11g-r2
New contributor
add a comment |
I have a table (table1) with fields package_id and contract_id.
Data in table 1 is like that 1 package_id can have 1 or more contract_id associated with it.
I have another table (table1) with contract_id and status ('active' or 'dead')
I need to find the package_id which doesn't have any contract_id associated with it which is 'ACTIVE' or in other words I need to find package_id which has all contract_id associated with it in 'DEAD' state.
Please help.
oracle-11g-r2
New contributor
add a comment |
I have a table (table1) with fields package_id and contract_id.
Data in table 1 is like that 1 package_id can have 1 or more contract_id associated with it.
I have another table (table1) with contract_id and status ('active' or 'dead')
I need to find the package_id which doesn't have any contract_id associated with it which is 'ACTIVE' or in other words I need to find package_id which has all contract_id associated with it in 'DEAD' state.
Please help.
oracle-11g-r2
New contributor
I have a table (table1) with fields package_id and contract_id.
Data in table 1 is like that 1 package_id can have 1 or more contract_id associated with it.
I have another table (table1) with contract_id and status ('active' or 'dead')
I need to find the package_id which doesn't have any contract_id associated with it which is 'ACTIVE' or in other words I need to find package_id which has all contract_id associated with it in 'DEAD' state.
Please help.
oracle-11g-r2
oracle-11g-r2
New contributor
New contributor
New contributor
asked 18 secs ago
ANAANA
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
});
}
});
ANA 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%2f232202%2foracle-loop-through-values-from-one-table-and-join-with-another-table%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
ANA is a new contributor. Be nice, and check out our Code of Conduct.
ANA is a new contributor. Be nice, and check out our Code of Conduct.
ANA is a new contributor. Be nice, and check out our Code of Conduct.
ANA 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%2f232202%2foracle-loop-through-values-from-one-table-and-join-with-another-table%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