Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Contributor
2658 Points
745 Posts
Apr 25, 2012 03:01 PM|LINK
Hi
As per my understanding if a table is like below
ColA ColB
------------------
1 2
2 3
3 4
4 5
6
Then the result Should be like below
If this is what is expected then the query should be lik
select * from table where colB in (select colA from table where colA is not null)
Hope this helps.
Thanks.
swapna.anu
Contributor
2658 Points
745 Posts
Re: sql query
Apr 25, 2012 03:01 PM|LINK
Hi
As per my understanding if a table is like below
ColA ColB
------------------
1 2
2 3
3 4
4 5
6
Then the result Should be like below
ColA ColB
------------------
2 3
3 4
4 5
If this is what is expected then the query should be lik
Hope this helps.
Thanks.