How to select the one table column Vale in another table and also want mark as available or not available...
up vote
-2
down vote
favorite
I have one base table cheque and another table loan .
Now, I want to select those account no from cheque table which is available in loan table and want to mark as available. And if it is not available then mark as not available.
Note- I am checking this case with exist and not exist loan no.in loan table . after that selecting with union all.doing this approach getting more no of record .
Is there any way to select and mark the status with same no of count?
tsql
add a comment |
up vote
-2
down vote
favorite
I have one base table cheque and another table loan .
Now, I want to select those account no from cheque table which is available in loan table and want to mark as available. And if it is not available then mark as not available.
Note- I am checking this case with exist and not exist loan no.in loan table . after that selecting with union all.doing this approach getting more no of record .
Is there any way to select and mark the status with same no of count?
tsql
There is probably a way to do this, but we can't really help you without seeing your data. Please include sample data which helps to explain the problem.
– Tim Biegeleisen
Nov 22 at 15:01
Please read this for some tips on improving your question.
– HABO
Nov 22 at 16:55
add a comment |
up vote
-2
down vote
favorite
up vote
-2
down vote
favorite
I have one base table cheque and another table loan .
Now, I want to select those account no from cheque table which is available in loan table and want to mark as available. And if it is not available then mark as not available.
Note- I am checking this case with exist and not exist loan no.in loan table . after that selecting with union all.doing this approach getting more no of record .
Is there any way to select and mark the status with same no of count?
tsql
I have one base table cheque and another table loan .
Now, I want to select those account no from cheque table which is available in loan table and want to mark as available. And if it is not available then mark as not available.
Note- I am checking this case with exist and not exist loan no.in loan table . after that selecting with union all.doing this approach getting more no of record .
Is there any way to select and mark the status with same no of count?
tsql
tsql
asked Nov 22 at 14:59
bhavna dubey
1
1
There is probably a way to do this, but we can't really help you without seeing your data. Please include sample data which helps to explain the problem.
– Tim Biegeleisen
Nov 22 at 15:01
Please read this for some tips on improving your question.
– HABO
Nov 22 at 16:55
add a comment |
There is probably a way to do this, but we can't really help you without seeing your data. Please include sample data which helps to explain the problem.
– Tim Biegeleisen
Nov 22 at 15:01
Please read this for some tips on improving your question.
– HABO
Nov 22 at 16:55
There is probably a way to do this, but we can't really help you without seeing your data. Please include sample data which helps to explain the problem.
– Tim Biegeleisen
Nov 22 at 15:01
There is probably a way to do this, but we can't really help you without seeing your data. Please include sample data which helps to explain the problem.
– Tim Biegeleisen
Nov 22 at 15:01
Please read this for some tips on improving your question.
– HABO
Nov 22 at 16:55
Please read this for some tips on improving your question.
– HABO
Nov 22 at 16:55
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- 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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2fstackoverflow.com%2fquestions%2f53433637%2fhow-to-select-the-one-table-column-vale-in-another-table-and-also-want-mark-as-a%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
There is probably a way to do this, but we can't really help you without seeing your data. Please include sample data which helps to explain the problem.
– Tim Biegeleisen
Nov 22 at 15:01
Please read this for some tips on improving your question.
– HABO
Nov 22 at 16:55