angela_g1 Posted March 6, 2014 Share Posted March 6, 2014 Hi I am trying to Select * where table1.member_no=table2.member_no and status is not 'O','H','R' there could be multiples of the same member_no and the other status is 'C' i do not want to insert and members where all status's are 'c' Hope this makes sense! How do i do this? Link to comment Share on other sites More sharing options...
justsomeguy Posted March 6, 2014 Share Posted March 6, 2014 If you want to exclude members with a status of C even though they might have another status, you could do something like this:Select * from table1, table2where table1.member_no=table2.member_no and table1.member_no not in (select member_no from table1 where status='c') Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now